Last active
March 16, 2020 21:19
-
-
Save eriadam/34eecf42c19c3c6693b97d500fdcca63 to your computer and use it in GitHub Desktop.
Revisions
-
Adam Eri revised this gist
Apr 26, 2018 . 1 changed file with 25 additions and 26 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,40 +1,39 @@ input { tcp { port => 5000 # You need to have the json_lines plugin installed codec => json_lines # It is necessary to configure the SSL properly. Otherwise # the logs wont make it to ES. ssl_enable => true # This might be suefulr for testing if you have self-signed # certificates. # ssl_verify => false ssl_cert => "/path/to/crt" ssl_key => "/path/to/key" } } filter { # You need to have the json filter installed json { source => "message" } } output { # This sends the message to elastic search elasticsearch { hosts => "elasticsearch:9200" } # This writes the message to stdout stdout { codec => rubydebug } } -
Adam Eri created this gist
Apr 26, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,40 @@ input { tcp { port => 5000 # You need to have the json_lines plugin installed codec => json_lines # It is necessary to configure the SSL properly. Otherwise # the logs wont make it to ES. ssl_enable => true # This might be suefulr for testing if you have self-signed # certificates. # ssl_verify => false ssl_cert => "/path/to/crt" ssl_key => "/path/to/key" } } filter { # You need to have the json filter installed json { source => "message" } } output { # This sends the message to elastic search elasticsearch { hosts => "elasticsearch:9200" } # This writes the message to stdout stdout { codec => rubydebug } }