Getting Data In

DATETIME field error

hylee
Explorer

I am using the DB Connect app to connect to a MYSQL database and input the data from a table.

the datetime fields in the MySQL data like "2013-09-24 21:31:13" appear as "1385819882.000" in Splunk.

How could I change this?

Tags (1)
0 Karma

lmyrefelt
Builder

Take a look at the following answer and see if it is not applicable for you as well ?
http://answers.splunk.com/answers/131703/indexing-epoch-times-in-db-connect

0 Karma

tmeader
Contributor

Any fix for this? The DB Connect documentation says here that it natively handles the DATETIME format properly, but that's not the case from what we're seeing. Instead of displaying in the normal YYYY-MM-DD HH:MM:SS format that it's stored in, it's displaying as the "epoch" format shown above. The old MySQL Connector displayed them fine. Also, as Ayn noted above, Splunk Web DOES NOT render a readable version. Splunk Web results show the identical epoch format for results.

0 Karma

hylee
Explorer

original data is "2013-12-09 15:38:38",but it looks "1386571823.000" in the SPLUNK.
the original data field type is DATETIME.

I want to change it looks like the original data.

What should I do?

0 Karma

Ayn
Legend

What is your desired fix? That the raw data says "2013-09-24 21:31:13" instead of "1385819882.000"? The timestamp is still valid and you can see a human readable version of it in splunkweb etc anyway...

0 Karma
Get Updates on the Splunk Community!

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...

Reminder! Splunk Love Promo: $25 Visa Gift Card for Your Honest SOAR Review With ...

We recently launched our first Splunk Love Special, and it's gone phenomenally well, so we're doing it again, ...