Getting Data In

Changing collection of the timestamp of the event?

brandili
Explorer

Hello,

I have a problem I'm not able to solve.

I'm getting information from a server where two timestamp appear. Splunk is considering the first timestamp of the log. However, I would like Splunk consider only the second timestamp in the log line. How do I get splunk to recognize the second timestamp? Follows the example of the log below:

First timestamp - - - - -Second timestap

2014-07-09 10:22:00 - 2014-07-10 07:15:10 4 100 Notice License: License leased to user BRA01

2014-07-09 10:22:00 - 2014-07-10 07:15:02 4 100 Notice CAL usage: Using CAL of type "Named User" for user "BRA01"

Thanks.

Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Add a TIME_PREFIX statement to the appropriate stanza of your props.conf file.

TIME_PREFIX = .{22}

should tell Splunk to skip the first 22 characters before looking for a timestamp.

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

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...