All Apps and Add-ons

Extract version from event

hqw
Path Finder

Dear all,

I want to exact server version from the event, what i want is to extract 1.7.2, but my command can't show anything, could you pls kindly help?

event:
action="INFO:AppLoader (1.7.2 @143650)" category="System" label="(3a4c5025d457ef2e)" table="****"

AppLoader |rex field=_raw "action=\"(.:AppLoader (?<version> @.))" |stats latest(version) by table

0 Karma
1 Solution

aholzel
Communicator

The problem is probably the " after action= you need to either to escape that by putting a \ in front of it or remove it at all. You can use the below search to test.

AppLoader |rex field=_raw "action=.*?\((?<version>[^\s\@]+)" |stats latest(version) by table

View solution in original post

0 Karma

aholzel
Communicator

The problem is probably the " after action= you need to either to escape that by putting a \ in front of it or remove it at all. You can use the below search to test.

AppLoader |rex field=_raw "action=.*?\((?<version>[^\s\@]+)" |stats latest(version) by table
0 Karma

hqw
Path Finder

The last line is my current command

0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security(ES) 7.3 is approaching the end of support. Get ready for ...

Hi friends!    At Splunk, your product success is our top priority. With Enterprise Security (ES), we're here ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...