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)

 

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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Build the Future of Agentic AI: Join the Splunk Agentic Ops Hackathon

AI is changing how teams investigate incidents, detect threats, automate workflows, and build intelligent ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...