Splunk Search

Datas are not getting parsed after giving table name on splunk query.

Splunk-Star
Loves-to-Learn Lots

Please let me know the correct data extraction?

 

index=* "Unknown message for StatusConsumer" topicId marshall
| rex field=_raw "\"topicId\":\"(?<topicId>\d+)\""
| table topicId

 

Datas are not getting parsed after giving table name on splunk query.

Labels (3)
0 Karma

Splunk-Star
Loves-to-Learn Lots

regex was not applied correctly thats why it was not extracting the data.

 

Thank you

0 Karma

bowesmana
SplunkTrust
SplunkTrust

Please post an example of your data containing topicid

 

0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @Splunk-Star,

After using table or stats commands Splunk shows only outputs of these commands. This does not mean they are not extracted. If you need to access other fields, add them to the table command. 

 

If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma
Get Updates on the Splunk Community!

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...