Splunk Search

'Show Source' in the search events

TestQA52
Observer
 
 
 
 

I am searching for logs, and when I click on 'Show source' they are more logs associated with it

Is there a way to have these other logs to show in the events? I cannot format Show Source as easily as the search events 

Labels (1)
0 Karma

aasabatini
Motivator

Hi @TestQA52 

 

try metadata command, it's really easier to check sources, sourcetypes and hosts

example for the sources:

| metadata type=sources

 

“The answer is out there, Neo, and it’s looking for you, and it will find you if you want it to.”

TestQA52
Observer
 
 
 
 

@aasabatini Hey, thank you. Im very new to Splunk

 

 

 

 

Sometext| metadata type=sources

 

 

 

 

I'm getting: or in 'metadata' command: This command must be the first command of a search

 

 

 

 

metadata type=sources | Sometext

 

 

 

 

It says Sometext is not a command

0 Karma

aasabatini
Motivator

Hi @TestQA52 

please read the documentation

https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Metadata

anyway run the search like this 

| metadata type=sources index=<your index> splunk_server=<your server>
“The answer is out there, Neo, and it’s looking for you, and it will find you if you want it to.”
Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Building Momentum: Splunk Developer Program at .conf25

At Splunk, developers are at the heart of innovation. That’s why this year at .conf25, we officially launched ...