Getting Data In

Splunk line breaking issue

knalla
Path Finder

Hi, I'm trying to line break events and extract time stamp, but it has no date any ideas how to get this?

[04:05:16.255][t] setting data time stamp

[04:05:14.255][t] setting data time stampwewe22

[04:05:12.255][t] setting data time etc

 <PSET>CDPTLSGSG <cc>

Labels (2)
0 Karma

The_Simko
Path Finder

Good day Knalla,  

If the logs are from the current day, then you are in luck:  
in props:
TIME_FORMAT=\d{2}:\d{2}:\d{2}\.\d{3}
TIME_PREFIX=^\[
MAX_TIMESTAMP_LOOKAHEAD=25

Now, if the logs aren't from the given day you'll have to do something like store the logs in a directory with the date.  then use the above props and you can bring in data 

Good luck!

Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...