- Add log line reference to filewatch library to be able to know which line is before the over inside the file
- Add this information to the path field to be able to access this value from logstash config file
- Get the value inside the logstash configuration file using a simple grok filter on the path field file: logstash-1.4.2/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filewatch/tail.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Setting shortcuts...\n" | |
gsettings set org.gnome.mutter dynamic-workspaces false | |
gsettings set org.gnome.desktop.wm.preferences num-workspaces 10 | |
gsettings set org.gnome.shell.keybindings switch-to-application-1 [] | |
gsettings set org.gnome.shell.keybindings switch-to-application-2 [] | |
gsettings set org.gnome.shell.keybindings switch-to-application-3 [] | |
gsettings set org.gnome.shell.keybindings switch-to-application-4 [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zappa invoke --raw 'import subprocess; print subprocess.check_output("ls");' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- unzipped2/zappa/handler.py 1980-01-01 00:00:00.000000000 +0100 | |
+++ unzipped/zappa/handler.py 2019-02-28 11:04:44.445385373 +0100 | |
@@ -576,9 +576,15 @@ | |
return content | |
-def lambda_handler(event, context): # pragma: no cover | |
- return LambdaHandler.lambda_handler(event, context) | |
+try: | |
+ import lambdawarmer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func = lambda *args, **kwars: (args, kwargs) |