i am using filebeat to read the soa logs and want msg_timestamp value store in index as date datatype. Please help me how to create the index on msg_timestamp.
Below is my machine description:
OS : Linux 7
ELK: 6.4
tools : elasticsearch, kibana, logstash, filebeat.
There are quite a few ways to accomplish this. It may just work right out of the box if you've parsed your date field cleanly. By default, Elasticsearch uses dynamic field mapping with date detection enabled. If your date is in a format that is support by this function then it'll just work automatically. You can even customize this pattern if you have an index template already. You could also set the data type to date during Filebeat parsing using any number of methods.
Well if you're using Logstash, simply use the date filter and it will do the work for you by putting whatever field you want to use as your timestamp in the special @timestamp field.
Actually what i tried to achieve is, i have soa logs in on one file named "AdminServer.log" (append mode).
just on the based of date/error type(like update, shutdown, listener error, etc)/severity type i want to create the graph.
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.