Update: Really was a misunderstanding. Needed codec => rubydebug
in my stdout output to see what I was expecting
Of course this was all working but I upgraded -- sigh.
ubuntu 14.04
nxlog-ce 2.7.1191
logstash 2.3.2
elasticsearch 2.3.2
Symptom:
Logstash output not outputting json:
/opt/logstash/bin/logstash --config /etc/logstash/conf.d/
Settings: Default pipeline workers: 8
Pipeline main started
2016-05-17T20:53:43.798Z 127.0.0.1 %{message}
2016-05-17T20:53:57.498Z 127.0.0.1 %{message}
2016-05-17T20:54:01.043Z 127.0.0.1 %{message}
Here is my config:
input {
tcp {
port => 5140
codec => json_lines { }
}
}
filter { }
output {
stdout { }
}
I did a netcat on port 5140 to make sure nxlog was sending Json:
# nc -l localhost 5140
{"MessageSourceAddress":"192.168.153.59","EventReceivedTime":"2016-05-17 16:08:36","SourceModuleName":"in_tcp","SourceModuleType":"im_tcp","SyslogFacilityValue":4,"SyslogFacility":"AUTH","SyslogSeverityValue":6,"SyslogSeverity":"INFO","SeverityValue":2,"Severity":"INFO","Hostname":"server09","EventTime":"2016-05-17 16:08:36","SourceName":"sshd","ProcessID":"10099","Message":"Received disconnect from 192.168.153.33: 3: com.jcraft.jsch.JSchException: Auth cancel [preauth]"}
{"MessageSourceAddress":"192.168.153.59","EventReceivedTime":"2016-05-17 16:08:36","SourceModuleName":"in_tcp","SourceModuleType":"im_tcp","SyslogFacilityValue":4,"SyslogFacility":"AUTH","SyslogSeverityValue":6,"SyslogSeverity":"INFO","SeverityValue":2,"Severity":"INFO","Hostname":"server09","EventTime":"2016-05-17 16:08:36","SourceName":"sshd","ProcessID":"10098","Message":"Received disconnect from 192.168.153.33: 3: com.jcraft.jsch.JSchException: Auth cancel [preauth]"}
Any pointers? Thanks. -- Bud