I have a csv file that I'm looking to import into Kibana.
There is a date field and a time field. I would like to combine them to be used as a timestamp, so that I can then search for specific time ranges.
However, the import treats these as string fields.
At the time of import, I tried overriding this, but it doesn't seem to work.
Hi @majagrubic, Thanks for your response.
Yes, I did try the same operation that you suggest, but after the index is created, the type of the field still stays at Keyword, rather than Date.
I now found a way to manually edit the type in the "Advanced" section before importing, wherein I can specify it as "date".
For combining the 2 fields, you suggest using runtime fields. Is there a way to do it as an indexed field, so that it will perform search queries faster?
Also, the time in the csv is in my local timezone. For example, the time is "09:15:00", without any offset or any timezone specifier.
When I import it, Kibana treats it as UTC. Is it possible to edit the mapping/configuration so that Kibana will import this as a time in my timezone, without modifying all the records in the csv?
Thanks again.
When trying to create an index-time mapping for the combined field, the script throws a compile error if I try to make the result of type 'date'. It works when the result is of type 'keyword'.
I'm looking to combine the 'date' and 'time', both of which are of type 'date', and get a combined field of type 'date'. Can this be done with scripts?
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.