Splunk Enterprise Security

How to I pass 2 fields from subsearch

squatforeever
New Member

Hi guys,
I'm having a query that take 2 fields from specific index type, and then going out to the main index in order to get more useful info
for the search.
The query is working only when I put a 1 field from the subsearch, but I want to pass 2 fields from the subsearch
now Its something like:

MAIN INDEX SEARCH |
[ specific sourcetype index search=xxx| table field1 field2]
stats values(fieldx) values(fieldy) values(field1) by field2

So I need to pass 2 of the fields from the subsearch. but it only works with 1 field each time, cant do it with both.

Would like to hear suggestions how to pass 2 fields (or more) from subsearch to the main search

Thanks!!!

0 Karma

anmolpatel
Builder
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...