Hi,
I think this is some problem with timestamp of logs but I don't know how to solve this. Generally when I create index without 'contains time-based events ' (this checkbox during creating), then I see logs but of course without ability to choose according to date. In the other hand when I create index with this option (like on screenshot
The result of
curl -XGET 'http://localhost:9200/filebeat-*/_search?pretty' is :
}, {
"_index" : "filebeat-2017.01.05",
"_type" : "syslog",
"_id" : "AVlu0pLnQQBiZCJUK7eL",
"_score" : 1.0,
"_source" : {
"message" : "10.172.81.39 - - [05/Jan/2017:04:51:10 +0100] "GET /.lvs.php HTTP/1.1" 200 8 "-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"",
"@version" : "1",
"@timestamp" : "2017-01-05T13:30:07.131Z",
"count" : 1,
"fields" : null,
"beat" : {
"hostname" : "f1.smaker.rc.htp.iadm",
"name" : "f1.smaker.rc.htp.iadm"
},
"source" : "/var/log/httpd/smaker.pl.rc.htp-custom_log",
"type" : "syslog",
"input_type" : "log",
"offset" : 21294,
"host" : "f1.smaker.rc.htp.iadm",
"tags" : [ "beats_input_codec_plain_applied" ]
}
}, {
"_index" : "filebeat-2017.01.05",
"_type" : "syslog",
"_id" : "AVlu0pLnQQBiZCJUK7eQ",
"_score" : 1.0,
"_source" : {
"message" : "10.172.81.39 - - [05/Jan/2017:04:56:10 +0100] "GET /.lvs.php HTTP/1.1" 200 8 "-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"",
"@version" : "1",
"@timestamp" : "2017-01-05T13:30:07.131Z",
"type" : "syslog",
"input_type" : "log",
"fields" : null,
"beat" : {
"hostname" : "f1.smaker.rc.htp.iadm",
"name" : "f1.smaker.rc.htp.iadm"
},
"source" : "/var/log/httpd/smaker.pl.rc.htp-custom_log",
"offset" : 21924,
"count" : 1,
"host" : "f1.smaker.rc.htp.iadm",
"tags" : [ "beats_input_codec_plain_applied" ]
}
} ]
What is going on ? Please help.