Could anybody clarify if it's possible to add date part to log timestamp in Logstash not in 'UTC' but in servers time zone.
No, that's not possible. @timestamp is always UTC.
and I want to add todays date to every log record timestamp and assign that value to @timestamp field.
That assumes that you always process the file in real time on the exact same day that the log record was produced. If that really is an okay assumption to make you can use a ruby filter to produce today's date in your local timezone.
Does that mean there is no way to change @timestamp to another time zone?
I would like to see my logs time in my current timezone, not in UTC
If the log was created today at 21:00:00,000 I don't want to add tomorrow date to its timestamp, It should have today date in timestamp.
Does that mean there is no way to change @timestamp to another time zone?
On the ES side it'll always be stored as UTC and that's what the date filter produces (not configurable). Reading the ES documentation for the date type it seems it accepts timestamps with a non-zero UTC offset, i.e. your documents can contain timestamps in local time as long as the offset is specified. I haven't tried it because I think UTC is a good thing that people should stop fighting.
I would like to see my logs time in my current timezone, not in UTC
See where? Kibana converts the timestamps to the browser's timezone.
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.