Knowledge Management

Eventtype Definition: Search by Field Value length

gpburgett
Splunk Employee
Splunk Employee

Similarly, I want to make a group/eventtype of events from a certain sourcetype where the LOGINID values are all 12 characters long. I can get these events out using pipes and regexes, but then eventtypes does not accept search queries with pipes. Is there a way to extract the LOGINID length as a seperate field that I can use to search on in my eventtype query?

Tags (1)
0 Karma
1 Solution

Stephen_Sorkin
Splunk Employee
Splunk Employee

As in http://answers.splunk.com/questions/10145/case-sensitivity-in-eventtype-searches/10197#10197, you should be able to coerce your regex to extract fields that are only of a certain length.

View solution in original post

0 Karma

Stephen_Sorkin
Splunk Employee
Splunk Employee

As in http://answers.splunk.com/questions/10145/case-sensitivity-in-eventtype-searches/10197#10197, you should be able to coerce your regex to extract fields that are only of a certain length.

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