Hello All,
I am referring logstash example of parsing syslog data : https://www.elastic.co/guide/en/logstash/current/config-examples.html#_processing_syslog_messages
My input line is :
Dec 3 01:22:48 arista1.lab ProcMgr-worker: %PROCMGR-7-NEW_PROCESSES: New processes configured to run under ProcMgr control: ['PciBus', 'Picasso', 'PlxPcie', 'PlxPcie-system']
What I have output with same config mentioned in above link :
{
"message" => "Dec 3 01:22:48 arista1.lab ProcMgr-worker: %PROCMGR-7-NEW_PROCESSES: New processes configured to run under ProcMgr control: ['PciBus', 'Picasso', 'PlxPcie', 'PlxPcie-system']\r",
"@version" => "1",
"@timestamp" => "2015-12-03T09:22:48.000Z",
"host" => "0:0:0:0:0:0:0:1",
"type" => "syslog",
"syslog_timestamp" => "Dec 3 01:22:48",
"syslog_hostname" => "arista1.lab",
"syslog_program" => "ProcMgr-worker",
"syslog_message" => "%PROCMGR-7-NEW_PROCESSES: New processes configured to run under ProcMgr control: ['PciBus', 'Picasso', 'PlxPcie', 'PlxPcie-system']\r",
"received_at" => "2015-12-15T15:46:37.596Z",
"received_from" => "0:0:0:0:0:0:0:1",
"syslog_severity_code" => 5,
"syslog_facility_code" => 1,
"syslog_facility" => "user-level",
"syslog_severity" => "notice"
}
Questions :
1: How did it get "@version" => "1" ?
2: Why @timestamp and received_at are different timestamps, I should get almost same time at which this event was sent, right ?
3: I know this is coming from syslog_pri {}
How did it get these fields, My input line does not seem to have these values anywhere.
"syslog_severity_code" => 5,
"syslog_facility_code" => 1,
"syslog_facility" => "user-level",
"syslog_severity" => "notice"
Thanks !