Hi All,
syslog output is making me crazy.
I have a logstash input with multiple line concatenation, the concatenated message has the field "message" containing only the last line and the field "conn_mess" containing the complete message.
I'm trying to send through Syslog Output Plugin "conn_mess" to a syslog server but only the field "message" arrives to the syslog server
This is my output configuration
elasticsearch {
index => "exchange-smtpreceive-%{+YYYY.MM.dd}"
hosts => ["192.168.7.224:9200"]
}
syslog{
host => "192.168.7.25"
port => "514"
message => "%{[conn_mess]}"
msgid => "%{[sessionID]}"
appname => "SMTPRECEIVE-LOGSTASH"
sourcehost => "192.168.7.231"
}
And this is my last statement on the input aggregation
if [event] == "-" {
aggregate {
task_id => "%{sessionID}"
code => "event.set('conn_user',map['conn_user'])
event.set('conn_mess', map['conn_mess'])"
push_previous_map_as_event => true
end_of_task => true
timeout => 120
add_tag => ['fine']
}
I've tried many different output configuration but I cannot find the right one, of course the elasticsearch output is fine.
thx!