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!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...