Splunk Search

How to combine two of the same type of message string and show table data?

anirban_nag
Explorer

I have one index as foo. In this index there are messages like Bar Baz Hello...., Bar Baz Blah..., Bar Hi.... I want to show the data of the events corresponding with the message which starts with Bar Baz so Bar Hi... will not be shown. I am trying with the following search:

index=foo message="Bar Baz"* | table message _time data

But it is showing nothing. I know I am missing something.

Tags (3)
0 Karma
1 Solution

javiergn
Super Champion

There's a typo in your search. Wildcats should go inside the double quotes:

index=foo message="Bar Baz*" | table message _time data

View solution in original post

javiergn
Super Champion

There's a typo in your search. Wildcats should go inside the double quotes:

index=foo message="Bar Baz*" | table message _time data
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...