# FIlebeat IPtables Module timezone wrong

**URL:** <https://discuss.elastic.co/t/filebeat-iptables-module-timezone-wrong/205467>\
**Category:** Beats\
**Tags:** beats-module, filebeat\
**Created:** [October 28, 2019, 1:04pm UTC](https://discuss.elastic.co/t/filebeat-iptables-module-timezone-wrong/205467 "2019-10-28T13:04:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadjar340](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fadjar340/32/43610_2.png) [@fadjar340](https://discuss.elastic.co/u/fadjar340)\
**Post date:** [October 28, 2019, 1:04pm UTC](https://discuss.elastic.co/t/filebeat-iptables-module-timezone-wrong/205467/1 "2019-10-28T13:04:38Z")

</div>

I found that the pipeline in the iptables log ingest have some glitch in the timezone, with version 7.4.0, I have the document 7 hours next from my timezone.  
Since I check the date compare to syslog, I put the pipeline like below:

{  
.  
.  
.  
},  
{  
"date": {  
"field": "iptables.raw\_date",  
"target\_field": "@timestamp",  
"formats": [  
"MMM d HH:mm:ss",  
"MMM dd HH:mm:ss",  
"MMM d HH:mm:ss",  
"ISO8601"  
],  
"ignore\_failure": true  
}  
},  
{  
"date": {  
"if": "ctx.event.timezone != null",  
"field": "iptables.raw\_date",  
"target\_field": "@timestamp",  
"formats": [  
"MMM d HH:mm:ss",  
"MMM dd HH:mm:ss",  
"MMM d HH:mm:ss",  
"ISO8601"  
],  
"timezone": "{{ event.timezone }}",  
"on\_failure": [{"append": {"field": "error.message", "value": "{{ \_ingest.on\_failure\_message }}"}}]  
}  
},  
{  
"remove": {  
"field": "iptables.raw\_date",  
"ignore\_missing": true  
}  
},

.  
.  
.  
"field" : "error.message",  
"value" : "{{ \_ingest.on\_failure\_message }}"  
}  
}]  
}

Then all the logs following the UTC and my timezone and works very good...  
Now, my document works as expected.

---

<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:** [November 25, 2019, 1:04pm UTC](https://discuss.elastic.co/t/filebeat-iptables-module-timezone-wrong/205467/2 "2019-11-25T13:04:40Z")

</div>

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