Splunk Search

Why are date_ fields missing?

mykol_j
Communicator

What happened to the date_wday, date_hour,  and the others?  Am I going nuts, waking from a dream where they used to be there all the _time?

looks like date_mday and date_month are still there...

on 8.2.6

Labels (1)
Tags (1)
1 Solution

mykol_j
Communicator

All turned out to be a timestamp extraction.

As soon as we removed DATETIME_CONFIG = NONE it fixed it. Go figure.

View solution in original post

0 Karma

mykol_j
Communicator

All turned out to be a timestamp extraction.

As soon as we removed DATETIME_CONFIG = NONE it fixed it. Go figure.

0 Karma

inventsekar
SplunkTrust
SplunkTrust

hmm, you should provide us some "more" details...

1. what version of Splunk you are using - free splunk or enterprise or cloud?

2. on which index you saw this above issue?

3. the SPL search query you use for this above issue?


if you are not going nuts and if you use older versions of splunk, splunk will make you go nuts automatically. (for example, the license consumption calculation has changed "drastically" on each versions of 6x, 7x, 8x, etc)

 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma

mykol_j
Communicator

Think I just noticed part of the problem, maybe this post will still help somebody out there if they run across it (otherwise I'd delete it out of embarrassment, 😉

The data in question has a typo in the timestamp, a comma. Even though it's being extracted OK into "_time", it appears that it's enough to jack with the other "date_" extractions.

i.e.:  2022-07-20 13:07:51,352

mykol_j
Communicator

Enterprise 8.2.6

The SPL is at it's most basic:

index=badging     -- yes, it's door badging data. Yes, the timestamps are standard and are being read correctly.

I noticed that if I specify the servername the data's coming from (i.e. host=badgingserver) the fields appear (date_hour, date_minute, date_year, etc.). But those are coming from the index the server is sending it's default information to (/var/log/) -- in this case "security" before you ask. But a simple "index=badging" or a simple "index=badging  host=badgingserver" -- which is a single file in /var/log/badging/badge.log -- and the fields not being there.

I wasn't aware of the index impacting whether a "default" field like date_year would appear...

 

0 Karma

mykol_j
Communicator

Hmm, appears to be based on the index... I don't remember this being an issue -- as far as I remember, they've always been there along with _time. Anyone have any insight?

0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...