Getting Data In

How to wok with event Linebreaking

gajananh999
Contributor

Hello Everyone,

I have one IIS Log files

example :
2013-01-23 00:00:00.444 "AEPLWEB2" "66.249.74.162" /research/userreviews/reviewdetails.aspx rid=114 "E:\sites\carwale\research\userreviews\reviewdetails.aspx" 200 - 0 15036 306 - - "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 05:30:00.444 436 0 "WWW.CARWALE.COM" 192.168.1.15 80 3.944 - "HTTP/1.1" "http" GET "www.carwale.com" 2013-01-23 00:00:00.444 2013-01-23 11.37 - 2013-01-23 00:00:00.008

When i input this file the by default time stamp taken was 2013-01-23 00:00:00.444 But According to IST i want make time stamp as 2013-01-23 05:30:00.444 as made bold in line also.

How can i do this. How can i create Timestamp.?

Thanks a regrads,
Gajanan Hiroji

Tags (2)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Specifying \)"\s+ as timestamp prefix appears to pick out the 05:30:00.444 together with the second 2013-01-23 later in the line.

Edit: The closing parenthesis appears to be part of the referer, hence bad to use - (\S+\s+){15} with appropriate values for the max lookahead should do the same.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...