# \[filebeat panw module\] set timezone when hostname field contains keyword

**URL:** <https://discuss.elastic.co/t/filebeat-panw-module-set-timezone-when-hostname-field-contains-keyword/238634>\
**Category:** Beats\
**Tags:** beats-module, filebeat\
**Created:** [June 25, 2020, 9:53am UTC](https://discuss.elastic.co/t/filebeat-panw-module-set-timezone-when-hostname-field-contains-keyword/238634 "2020-06-25T09:53:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gadelkareem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gadelkareem/32/71031_2.png) [@gadelkareem](https://discuss.elastic.co/u/gadelkareem)\
**Post date:** [June 25, 2020, 9:53am UTC](https://discuss.elastic.co/t/filebeat-panw-module-set-timezone-when-hostname-field-contains-keyword/238634/1 "2020-06-25T09:53:48Z")

</div>

How can I set timezone to ex `EST` when hostname field contains `us-east-1`?

I tried something like this but it does not work:

```auto
  - date:
      if: "observer.hostname.toLowerCase().contains('useast') "
      field: "_temp_.generated_time"
      target_field: "_temp_.generated_time"
      timezone: "-05:00"
      formats:
        - "yyyy/MM/dd HH:mm:ss"

```

---

<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:** [July 23, 2020, 11:53am UTC](https://discuss.elastic.co/t/filebeat-panw-module-set-timezone-when-hostname-field-contains-keyword/238634/2 "2020-07-23T11:53:51Z")

</div>

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