Splunk Search

Unable to search mv

daniel333
Builder

All,

I am unable to search by a mvexpand which I am doing via fields.conf. I am getting the extraction I expect, but searching by that fails.

This search fails, but is based on clicking right in the GUI -
index=main PCIDSS="11.1.2.a"

Reference back to the original post -
https://answers.splunk.com/answers/440752/how-do-i-automatically-run-mvexpand-on-a-field.html

0 Karma

woodcock
Esteemed Legend

You are probably running in to this well-known problem:

http://blogs.splunk.com/2011/10/07/cannot-search-based-on-an-extracted-field/

The solution is to put this into fields.conf in the same directory that you have your field extractions (where props.conf is):

[MyField]
INDEXED_VALUE = false
0 Karma

sundareshr
Legend

What do you get when you do. Do you see PCIDSS as multi-value field?

index=main | table PCIDSS

You could also try

index=main PCIDSS="*11.1.2.a*"
0 Karma

daniel333
Builder

Searching with the wildcard works great. Table how ever, is not expanded.

11.1.a
11.1.b
11.1.c
11.1.d
11.1.1
11.1.2.a
11.1.2.b
11.1.a
11.1.b
11.1.c
11.1.d
11.1.1
11.1.2.a
11.1.2.b
11.1.a
11.1.b
11.1.c
11.1.d
11.1.1
11.1.2.a
11.1.2.b
11.1.a
11.1.b
11.1.c
11.1.d
11.1.1
11.1.2.a
11.1.2.b
0 Karma

sundareshr
Legend

You have to use the mvexpand command to expand the table. You can either do

index=main | mvexpand PCIDSS | search PC.... OR index=main PCIDSS="*11.1.2.a*" | mvexpand

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...