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!

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 ...