Splunk Search

How to extract AppId from whole text

jw44250
New Member

Extracting AppID(s) from whole text and group by AppId and host

txid:944::appId:3::test:

txid:944::appId:3::tes2:

txid:944::appId:4::test4:

txid:944::appId:4::tes2:

txid:944::appId:5::test4:

txid:944::appId:6::tes2:

Tags (2)
0 Karma

DalJeanis
Legend

Try something like this...

| rex "txid:(?<txid>[^:]+)::appId:(?<appId>[^:]+)::(?<host>[^:]+):"
| stats count by appId host txid
0 Karma

jw44250
New Member

clientAppId="123123"

0 Karma

jw44250
New Member

clientAppId="123123"

0 Karma

jw44250
New Member

| rex "clientAppId(?[^=]+)"
| stats count by appId host

| rex "clientAppId=(?\d+)"
| stats count by appId host

i am not getting any result

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...