Skip to content

Instantly share code, notes, and snippets.

@eriadam
Last active March 16, 2020 21:19
Show Gist options
  • Save eriadam/34eecf42c19c3c6693b97d500fdcca63 to your computer and use it in GitHub Desktop.
Save eriadam/34eecf42c19c3c6693b97d500fdcca63 to your computer and use it in GitHub Desktop.
Logstash serve configuration for the JustLog iOS logger.
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