Splunk Search

How to edit my search to get a table of data from multiple indexes?

carlpier
Explorer

Hello,

I’m looking for to get a table from the the search results from two indexes:

index="imwaccesslog" OR index="nbdrest-performance" 
sourcetype=IMWAccessLog OR sourcetype="PerfNBDCustomTSV" 
URI="/nbd-rest/rest/nbd/inquiry/Inquiry/getUtente" OR Service="DBInquiryServiceImpl.estraiRapportiUtente" 
| stats max(ETsec) as m_LOG max(ETms) as m_PERF | table URI, m_LOG, Service, m_PERF

The result I'm currently getting is:

URI m_LOG   Service m_PERF
     4.681               63

The result I would like to get:

URI                                       m_LOG Service                                m_PERF
/nbd-rest/rest/nbd/inquiry/Inquiry/getUtente 4.681 DBInquiryServiceImpl.estraiRapportiUtente 63

Thanks in advance for the assistance.

0 Karma

Raghav2384
Motivator
try 

stats max(ETsec) as m_LOG ,max(ETms) as m_PERF by URI,Service,_time | table URI, m_LOG, Service, m_PERF

thanks,
Raghav
0 Karma

markthompson
Builder

Try this:
(index="imwaccesslog" AND sourcetype=IMWAccessLog) OR (index="nbdrest-performance" AND sourcetype="PerfNBDCustomTSV" )

0 Karma

carlpier
Explorer

I'm sorry, but the result is' still the same as the previous:

URI m_LOG Service m_PERF
4.681 63

fields URI and Service are not valued

thank you for what you can do

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

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...