# Wrong timestamp and timezone in Custom Log integration

**URL:** <https://discuss.elastic.co/t/wrong-timestamp-and-timezone-in-custom-log-integration/320151>\
**Category:** Elastic Agent\
**Created:** [November 30, 2022, 1:04pm UTC](https://discuss.elastic.co/t/wrong-timestamp-and-timezone-in-custom-log-integration/320151 "2022-11-30T13:04:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hermlam](https://avatars.discourse-cdn.com/v4/letter/h/8797f3/32.png) [@hermlam](https://discuss.elastic.co/u/hermlam)\
**Post date:** [November 30, 2022, 1:04pm UTC](https://discuss.elastic.co/t/wrong-timestamp-and-timezone-in-custom-log-integration/320151/1 "2022-11-30T13:04:53Z")

</div>

Hi,  
I have Raspberry Pi’s in different timezones writing logs to a Syslog server. The logs from the Syslog server are being collected by Elastic Agent and are correctly stored in the system.syslog Index  
Logs look like:

```auto
Nov 30 08:05:01 PiMirror piinfo: gpu_temp=47.7;cpu_temp=48.1;model=4
Nov 30 08:45:21 PiMirror rngd[500]: stats: bits received from HRNG source: 220064
Nov 30 09:05:01 PiMirror piinfo: gpu_temp=50.1;cpu_temp=49.1;model=4

```

Question 1: How does Elastic Agent with the system integration determine the right timestamp and timezone? These are not in the original log. These are correctly ingested.

The reason I am asking: The Syslog Server splits specific events (piinfo) in the logs to a separate logfile. These logs are also collected by Elastic Agent, but via a Custom log integration to a separate index. With a special ingest pipeline with a KV processor to split the message in the right Kev Value pairs.  
But here the timestamp is wrong (1 hour ahead) and the event.timezone empty.

Question 2: How can I get the right timestamp and timezone?

There is very little documentation on how to use the Custom log integration.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 28, 2022, 1:05pm UTC](https://discuss.elastic.co/t/wrong-timestamp-and-timezone-in-custom-log-integration/320151/2 "2022-12-28T13:05:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
