Lấy time trong file log làm @timestamp trong logstash | How to replace logstash @timestamp with log timestamp

0
130

Add to logstash filter config:

With ISO_8601 log timestamp (etc laravel log):

 

Click to photo for full size

With HTTP_DATE log timestamp (etc nginx log request):

Z is timezone, no need to add timezone to logstash config.

Click to photo for full size

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here