Splunk Search

How to achieve dynamic field value filtering after main search?

amerineni
Loves-to-Learn

Hello,  I'm trying to filter my events/results after evalulating the field name and value dynamically using eval. 

 

index=XXXX  YYYYYYY  | eval field_name=PPPP | eval field_value=KKKK | search field_name=field_value

 

I tried  below options, but none worked.

index=XXXX   [|gentimes start=-1 | eval space="Test"| table space]

index=XXXX   [|gentimes start=-1 | eval space="Test"| fields space]

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

I am not entirely clear what it is you are trying to do - does this help?

index=XXXX  YYYYYYY  | where PPPP="KKKK"
0 Karma

amerineni
Loves-to-Learn

I need to evalute some search criteria based on the inputs selected and peform the search. 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Please explain your usecase in a bit more detail

0 Karma
Get Updates on the Splunk Community!

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

🍂 Fall into November with a fresh lineup of Community Office Hours, Tech Talks, and Webinars we’ve ...

Transform your security operations with Splunk Enterprise Security

Hi Splunk Community, Splunk Platform has set a great foundation for your security operations. With the ...

Splunk Admins and App Developers | Earn a $35 gift card!

Splunk, in collaboration with ESG (Enterprise Strategy Group) by TechTarget, is excited to announce a ...