Hi,
i have attached the configuration file. Can please help me out to copy the LOGTIME to @timestamp.
input {
beats {
port => 5044
}
}
filter {
grok{
match => {"message" => "%{TIMESTAMP_ISO8601:LOGTIME}|%{WORD:LOGLEVEL}|%{WORD:MACHINE}|%{WORD:PROCESSID}|%{WORD:SERVICENAME}|%{WORD:PROCESS}\s+%{NUMBER:DURATION:float}\s+%{WORD:UNIT}"}
match => {"message" => "%{TIMESTAMP_ISO8601:LOGTIME}|%{WORD:LOGLEVEL}|%{WORD:MACHINE}|%{WORD:PROCESSID}|%{WORD:SERVICENAME}|[%{WORD:PROCESS}]\s+%{NUMBER:DURATION:float}\s+%{WORD:UNIT}"}
match => {"message" => "%{TIMESTAMP_ISO8601:LOGTIME}|%{WORD:LOGLEVEL}|%{WORD:MACHINE}|%{WORD:PROCESSID}|%{WORD:SERVICENAME}|(?%{WORD} %{WORD} %{WORD})\s+:\s+%{NUMBER:DURATION:float}\s+%{WORD:UNIT}"}
match => {"message" => "%{TIMESTAMP_ISO8601:LOGTIME}|%{WORD:LOGLEVEL}|%{WORD:MACHINE}|%{WORD:PROCESSID}|%{WORD:SERVICENAME}|[%{WORD:PROCESS}]"}
match => {"message" => "%{TIMESTAMP_ISO8601:LOGTIME}|%{WORD:LOGLEVEL}|%{WORD:MACHINE}|%{WORD:PROCESSID}|%{WORD:SERVICENAME}|<%{WORD:PROCESS}>"}
match => {"message" => "%{TIMESTAMP_ISO8601:LOGTIME}|%{WORD:LOGLEVEL}|%{WORD:MACHINE}|%{WORD:PROCESSID}|%{WORD:SERVICENAME}|<%{WORD:PROCESS}>\s+%{NUMBER:DURATION:float}\s+%{WORD:UNIT}"}
match => {"message" => "%{TIMESTAMP_ISO8601:LOGTIME}|%{WORD:LOGLEVEL}|%{WORD:MACHINE}|%{WORD:PROCESSID}|%{WORD:SERVICENAME}|%{GREEDYDATA:MSG}"}
}
date {
match => ["LOGTIME","ISO8601"]
target => "@timestamp"
}
}
output {
elasticsearch{
hosts => "localhost:9200"
manage_template => false
index => "finallog"
document_type => "test"
}
stdout{codec=>rubydebug}
}
Thanks in advance.