Splunk Dev

Ingest data into indexer which contains hourly data and Splunk only show 12 hours only

daniel_splunk
Splunk Employee
Splunk Employee

Below is the sample data and the props.conf that I used. When Splunk indexed the data, it only got 12 hours.

6:44:04 AM, Source = GetCookies, xxxxx....
6:44:05 AM, Source = IsFirstTimeUser, xxxxxx....
3:52:49 PM, Source = GetUserDetails - API,xxxxx....
3:52:52 PM, Source = GetCookies, xxxxx.....

And the props.conf that I used to parse the time.

[my_source_type] 
TIME_PREFIX=^ 
TIME_FORMAT=%H:%M:%S %p 
Tags (1)
0 Karma

daniel_splunk
Splunk Employee
Splunk Employee

Your props.conf is not correct.

TIME_FORMAT has "%H" which is the 24-hour-clock hour. Because %H explicitly defined it is a 24-hour time, the am/pm isn't used.

You need to use "%I:%M:%S" for a 12-hour time.

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!

[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 ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...