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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...