Getting Data In

Props not considering AM PM

ahmadshakir1952
Explorer

Splunk Props is not considering AM PM. Need to consider AM PM value and convert the time into 24 hour time format for the below sample log.

Log Sample:

5465465||TEXT||546546545445|65465|TEXT|TEXT|TEXT|TEXT|||0||TEXT||TEXT||||||||TEXT||13-JAN-20 06.09.59.000000 PM|||||||||||||||

Existing Props configuration:

DATETIME_CONFIG =
FIELD_DELIMITER = |
INDEXED_EXTRACTIONS = csv
KV_MODE = none
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TIMESTAMP_FIELDS = "Field name where time is exist with am/pm"
category = Structured
disabled = false
pulldown_type = true

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Try telling Splunk what the timestamp field looks like.

TIME_FORMAT = %d-%b-%y %I.%M.%S.%6N %p
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Try telling Splunk what the timestamp field looks like.

TIME_FORMAT = %d-%b-%y %I.%M.%S.%6N %p
---
If this reply helps you, Karma would be appreciated.
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, ...