Logstash log formatting


(venkat) #1

Hi team,

i am new to logstash. I installed elastic search, logstash,kibana in one linux server. Iam able to parse the logs to elastic search and able to view in Kibana. My requirement ,i need to see historical data in kibana.
For example if i have a log file generated at 10-Jan-2015. If i ran in logstash config file, kibana is taking as a logs generated at that time and displaying current date and time.

Could you please let us know how to achieve this functionality in logstash.


(Magnus B├Ąck) #2

Use the date filter to parse timestamp strings found in the log files and storing them in the @timestamp field, which is what Kibana normally uses.


(system) #3