# I get error Unable to configure plugins: (ArgumentError) Cannot determine timezone from nil

**URL:** https://discuss.elastic.co/t/i-get-error-unable-to-configure-plugins-argumenterror-cannot-determine-timezone-from-nil/319531
**Category:** Logstash
**Created:** [November 22, 2022, 9:27am UTC](https://discuss.elastic.co/t/i-get-error-unable-to-configure-plugins-argumenterror-cannot-determine-timezone-from-nil/319531 "2022-11-22T09:27:59Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mdinalova](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mdinalova](https://discuss.elastic.co/u/mdinalova)
#### Post date: [November 22, 2022, 9:27am UTC](https://discuss.elastic.co/t/i-get-error-unable-to-configure-plugins-argumenterror-cannot-determine-timezone-from-nil/319531/1 "2022-11-22T09:27:59Z")

</div>

Hello guys! I want to run my logtstash connect to elastic using input jdbc.  
Then i create conf file to run logstash but i always get this error, i try any changes in conf file but still not working. Anyone can help me to figure out this error? I am really stuck. Hope you guys can share the way to fix this case. Thank you!

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/a/7a97c2471511ee1e821e6646fcd0f5f514466e72.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/7/37d789922ab1096ef5ee025721e9b46fc7e97fcb.png)

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [November 22, 2022, 9:47am UTC](https://discuss.elastic.co/t/i-get-error-unable-to-configure-plugins-argumenterror-cannot-determine-timezone-from-nil/319531/2 "2022-11-22T09:47:53Z")

</div>

You have to use in this format:

```auto
 date {
      match => ["sometimefield", "yyyy/MM/dd HH:mm:ss"] # set correct time format
      timezone => "Asia/Bangkok"
      target=> "@timestamp" # this is default fieldname
 }

```

---

<div class="post-metadata">

### Author: ![mdinalova](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mdinalova](https://discuss.elastic.co/u/mdinalova)
#### Post date: [November 23, 2022, 1:40am UTC](https://discuss.elastic.co/t/i-get-error-unable-to-configure-plugins-argumenterror-cannot-determine-timezone-from-nil/319531/3 "2022-11-23T01:40:02Z")

</div>

Hi Rios!  
Thank you for your help! But i still get the same error!  
Would you mind, what is the command for looking the fieldname of the timestamp?  
I must match the time format plugin into the logstash, right?

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [November 23, 2022, 6:50am UTC](https://discuss.elastic.co/t/i-get-error-unable-to-configure-plugins-argumenterror-cannot-determine-timezone-from-nil/319531/4 "2022-11-23T06:50:01Z")

</div>

I assume the format "yyyy/MM/dd HH:mm:ss" is not correct. This was just an example.

Can you show a sample of your text field from the debug mode?

---

<div class="post-metadata">

### Author: ![mdinalova](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mdinalova](https://discuss.elastic.co/u/mdinalova)
#### Post date: [November 24, 2022, 8:47am UTC](https://discuss.elastic.co/t/i-get-error-unable-to-configure-plugins-argumenterror-cannot-determine-timezone-from-nil/319531/5 "2022-11-24T08:47:17Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/0/0/008adc13c65fa7160a732e1b63acc07665a7eabd.png)

like this?

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [November 24, 2022, 9:08am UTC](https://discuss.elastic.co/t/i-get-error-unable-to-configure-plugins-argumenterror-cannot-determine-timezone-from-nil/319531/6 "2022-11-24T09:08:18Z")

</div>

Is this your time sample: 2022-11-24 08:44:21.6500000953674316? For nanoseconds precision check [this](https://discuss.elastic.co/t/nanoseconds-with-logstash-and-elasticsearch/282492) and [this](https://stackoverflow.com/questions/70783837/logstash-8-0-timestamp-with-nanoseconds-precision)

---

<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 22, 2022, 9:08am UTC](https://discuss.elastic.co/t/i-get-error-unable-to-configure-plugins-argumenterror-cannot-determine-timezone-from-nil/319531/7 "2022-12-22T09:08:33Z")

</div>

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