Hi,
I am getting issue while indexing the data
My Log file :
2019-01-02 14:31:02 [00000001] info [native] Apache reports revision 2.2.8()
2019-01-02 14:31:02 [00000001] info [native] Apache reports version string (irrelevant for dtagent)
2019-01-02 14:31:02 [00000001] info [native] => Detected Apache version 2.2
[Wed Jan 02 14:31:03 2019] [notice] ---------------------------------------------------
[Wed Jan 02 14:31:03 2019] [notice] Using config
[Wed Jan 02 14:31:03 2019] [notice] foo bar
I have two different timestamp in my log file how do i index with same timestamp.
While creating an index pattern am getting two different pattern like @timestamp and date
How do i merge the date with timestamp.
Here is my config file
if[message] =~ /^20*/ {
grok { match =>{
"message" => "%{URIHOST:date} %{TIME:time} %{NAGIOSTIME:err_number} %{CISCO_REASON:loginfo}%{SYSLOG5424SD:native} %{GREEDYDATA:error_msg}"
if[message] =~ /^[.*/ {
grok { match =>{
"message" => "%{SYSLOG5424SD:logtime} %{SYSLOG5424SD:info}"
date {
match => [ "logtime" , "[EEE MMM dd HH:mm:ss yyyy]" ]
target => "@timestamp"
}