Splunk Search

Could you please anyone help me to write the time_format for bellow logs.

lksridhar
Explorer

Hi Folks,

could you please anyone help me to write the TIME_FORMAT , TIME_PREFIX and MAX_TIMESTAMP_LOOKAHEAD for below log type.

logs:

[10/05/17 03:47:03.447]:AP-AD ST: Rule rejected.
[10/05/17 03:47:03.447]:AP-AD ST:Policy returned:
[10/05/17 03:47:03.447]:AP-AD ST:Applying policy: %+C%14Cmon-otp-ConvertVoiceMailClass%-C.
[10/05/17 03:47:03.447]:AP-AD ST: Applying to query #1.

my configuration

[ autolearned__ ]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)([\d{2}\/\d{2}\/\d{2}\s\d{2}:\d{2}:\d{2}.\d{3}]:\w+-\w+\s\w+:)
TRUNCATE =999999
KV_MODE=None
TIME_FORMAT=
TIME_PREFIX=
MAX_TIMESTAMP_LOOKAHEAD=

Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Try these settings.

TIME_PREFIX = \[
TIME_FORMAT = %m/%d/%y %H:%M:%S.%3N
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Try these settings.

TIME_PREFIX = \[
TIME_FORMAT = %m/%d/%y %H:%M:%S.%3N
---
If this reply helps you, Karma would be appreciated.

lksridhar
Explorer

Thanks Richagalloway,

The above setting is working as i expected. i would like to know the value of MAX_TIMESTAMP_LOOKAHEAD. could you please the value for MAX_TIMESTAMP_LOOKAHEAD so will complete that configuration.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

In this case MAX_TIMESTAMP_LOOKAHEAD = 21 is good.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...