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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...