Splunk Search

Extracting Fields & Regular Expression Formating

santorof
Path Finder

I have Active Directory logs that do not have many fields associated with them. Each log is over 100 lines and I wish to extract a lockoutTime field that is further down in the bottom of each log. When going to extract the field I cannot do the automatic method because it only shows me the first 15 to 20 lines. Is there a way to show the entire raw log to do an automatic scroll over extraction? If not how would I format the regular expression where my line is lockoutTime=0 and I want to extract lockoutTime to see all of the results for that field across my logs?

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Write your own regex to extract the field. Start with this

lockoutTime=(?<lockoutTime>\d+)
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Write your own regex to extract the field. Start with this

lockoutTime=(?<lockoutTime>\d+)
---
If this reply helps you, Karma would be appreciated.

santorof
Path Finder

This works perfectly thank you.

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