# Timezone issue DHT11 sensor

**URL:** <https://discuss.elastic.co/t/timezone-issue-dht11-sensor/212906>\
**Category:** Elasticsearch\
**Created:** [December 24, 2019, 2:24am UTC](https://discuss.elastic.co/t/timezone-issue-dht11-sensor/212906 "2019-12-24T02:24:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![f1wing](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@f1wing](https://discuss.elastic.co/u/f1wing)\
**Post date:** [December 24, 2019, 2:24am UTC](https://discuss.elastic.co/t/timezone-issue-dht11-sensor/212906/1 "2019-12-24T02:24:52Z")

</div>

Hi everyone,

I am a network specialist and my work consist of configuring switches and firewalls to allows communication between two endpoints. Now, I am playing with Elastic stack and I like it as it may help me to analyse logs in a more efficient way. I am able to gather my DHT11 sensors that gave me temperature and humidity.

...  
2019-12-23 17:40:02 Temp=18.0C Humidity=39.0%  
2019-12-23 17:41:02 Temp=18.0C Humidity=39.0%  
2019-12-23 17:42:01 Temp=18.0C Humidity=39.0%  
2019-12-23 17:43:01 Temp=18.0C Humidity=39.0%

and my logstash configuration is able to put those data in Elasticsearch but when Kibana shows the time 5 hours earlier. The picture show I search for "capture\_time:"2019-12-23 17:43:01" and Kinaba showed the search result: capture\_time: December 23rd 2019, 12:43:01.000

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/9/293a2881bf15a9bf42c02005ce93d303b3095229.png)

The Elasticsearch, Logstash and Kibana is on the same server with Estern time. How can I correct this issue?

input {

file {

path =\> "/usr/share/logstash/weather.txt"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
}

}

filter {  
grok {  
match =\> { "message" =\> "%{TIMESTAMP\_ISO8601:capture\_time} Temp=%{NUMBER:temperature}C Humidity=%{NUMBER:humidity}%"}

}  
}  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "dht11"  
document\_type =\> sensors  
}  
stdout { codec =\> rubydebug }  
}

---

<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:** [January 21, 2020, 2:24am UTC](https://discuss.elastic.co/t/timezone-issue-dht11-sensor/212906/2 "2020-01-21T02:24:56Z")

</div>

Closed on January 21, 2020, 2:24am UTC

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