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!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

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

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...