Splunk Search

Extract in Props.conf

pfabrizi
Path Finder

I am trying to extract a field from cisco:asa events in my props.conf.
Here is the event:

Jan 23 11:04:57 taaaaaaa %ASA-6-717022: Certificate was successfully validated. serial number: 21EB548E00000000994A, subject name:  cn=XXX1G,ou=CL,ou=LOB,dc=xxx,dc=xxxxx,dc=net.

here is my extract:

EXTRACT-serial_number = ^.*Certificate was successfully validated. serial number:.*\s([0-9A-Z]+)

parses fine in regex101

is this an acceptable regex?

I only want it for these events.

Tags (1)
0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi pfabrizi,

try this regex:

 Certificate was successfully validated\. serial number:\s+([0-9A-Z]+)

You missed to escape the .. If it is still not working, check if there is no typo in the assigned sourcetype, source or hostname for the props stanza.

Hope this helps ...

cheers, MuS

View solution in original post

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi pfabrizi,

try this regex:

 Certificate was successfully validated\. serial number:\s+([0-9A-Z]+)

You missed to escape the .. If it is still not working, check if there is no typo in the assigned sourcetype, source or hostname for the props stanza.

Hope this helps ...

cheers, MuS

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