Last active
March 16, 2020 21:19
-
-
Save eriadam/34eecf42c19c3c6693b97d500fdcca63 to your computer and use it in GitHub Desktop.
Logstash serve configuration for the JustLog iOS logger.
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 characters
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 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment