Hi.
I have the following log entries. The timestamp is local system time but not UTC. I currently do not have a way to adjust the logs to include a tz.
D 2024-08-27T08:29:36,537 [Library] Logger - [MESSAGE] (1028445676) Received logging message
D 2024-08-27T08:29:37,307 [Library] Logger - [MESSAGE] Sent logging message
D 2024-08-27T08:29:39,537 [Library] Logger - [MESSAGE] (1028445676) Received logging message
D 2024-08-27T08:29:39,707 [Library] Logger - [MESSAGE] Sent logging message
D 2024-08-27T08:29:42,108 [Library] Logger - [MESSAGE] Sent logging message
D 2024-08-27T08:29:42,537 [Library] Logger - [MESSAGE] (1028445676) logging message
D 2024-08-27T08:29:44,508 [Library] Logger - [MESSAGE] Sent logging message
D 2024-08-27T08:29:45,537 [Library] Logger - [MESSAGE] (1028445676) logging message
D 2024-08-27T08:29:46,908 [Library] Logger - [MESSAGE] Sent logging message
D 2024-08-27T08:29:48,537 [Library] Logger - [MESSAGE] (1028445676) Received logging message
The issue I am having is that filebeat is ingesting these logs and they are stored in Elasticsearch as UTC. This causes confusion as Kibana is doing the tz conversion back to America/Chicago resulting in the time being off.
I added -timestamp but in Kibana I do not see the test field. This is assuming I am thinking about this the right way.
Any help will be appreciated.
filebeat.inputs:
- type: log
enabled: true
paths:
- /usr/share/filebeat/ingest_data/server*.log
multiline:
pattern: '^\t'
match: after
processors:
- add_tags:
tags: ['server']
- dissect:
field: message
tokenizer: "%{level} %{timestamp} [%{thread}] %{logger} - %{msg}"
- dissect:
field: log.file.path
tokenizer: "%{?path}/server.%{instance}.%{?ext}"
- timestamp:
field: "[dissect][timestamp]"
timezone: Local
layouts:
- '2024-08-27T08:29:39,707'
- '2024-08-27T08:29:48,537'
target_field: test-field