Hi,
I have logfile with date as it's name and time inside it. I'm using filebeats to get logs from remote server. Is it possible to combine date with time somehow and put in @timestamp? I tried something like this:
//
filter {
grok {
match => {
"path" => [
"D:/logs/(?%{YEAR})(?%{MONTHNUM})(?%{MONTHDAY}).log"
]
}
}
If the file name were in the [source] field I would expect that to work. That suggests that the file name is not in that field. If you are using Kibana, what does an event look like on the JSON tab in Discover?
Sorry, it's not "source", I used "path".
When it's local file then everything is fine, when I'm using beats it shows like %{year}-%{month}-%{day} 15:23:56:122
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.