Getting Data In

How to display several syslogs at the same time from different devices?

IHG152
New Member

Hi All

I am looking for a solution to display syslogs from three devices at the same time on the same screen in order to correlate the data. Having performed many searches I can't seem to work out the Splunk nomenclature for this (I am a newbie) . Could anybody point me in the right direction?

Many thanks

Tags (2)
0 Karma
1 Solution

FrankVl
Ultra Champion

That would start with writing a search query that returns all that data. What does "different devices" mean in this case, in Splunk terminology? Are those syslog events from all three devices in the same index and sourcetype, or in different ones?

If it is all in the same index and sourcetype, it would simply be something like:

index = yourindex sourcetype = yoursourcetype (host = hostA OR host = hostB or host = hostC)

If the data is in different indexes/sourcetypes, add OR clauses for those as well:

(index = indexA AND sourcetype = sourcetypeA AND host = hostA) OR  (index = indexB AND sourcetype = sourcetypeB AND host = hostB) or  (index = indexC AND sourcetype = sourcetypeC AND host = hostC)

View solution in original post

0 Karma

IHG152
New Member

Thank you for all your help 🙂

0 Karma

FrankVl
Ultra Champion

If you found my answer helpful, please mark that as accepted, rather than posting your own comment as a new answer. That way others who have the same problem can also easily find the right information 🙂

0 Karma

FrankVl
Ultra Champion

That would start with writing a search query that returns all that data. What does "different devices" mean in this case, in Splunk terminology? Are those syslog events from all three devices in the same index and sourcetype, or in different ones?

If it is all in the same index and sourcetype, it would simply be something like:

index = yourindex sourcetype = yoursourcetype (host = hostA OR host = hostB or host = hostC)

If the data is in different indexes/sourcetypes, add OR clauses for those as well:

(index = indexA AND sourcetype = sourcetypeA AND host = hostA) OR  (index = indexB AND sourcetype = sourcetypeB AND host = hostB) or  (index = indexC AND sourcetype = sourcetypeC AND host = hostC)
0 Karma

IHG152
New Member

Hi FrankVI

Thank you for reply so quickly.

The idea is to have three different devices (firewall, router and switch) send their syslogs to Splunk (I have read another device is needed to collect the syslog data) and then be able to display the syslog files for each device at the same time in three different windows and then be able to correlate/view the data by time.

Is this achievable? Everything I see in syslog software always appears to be one syslog window only.

Thanks

0 Karma

FrankVl
Ultra Champion

Not sure what syslog software you are referring to, but the answer to your question is yes. Once you get this data into splunk, you can search and display it in whichever way you want. All the logs in one big list (as per the search suggestions I gave in my answer), separate windows searching each device type etc.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Build the Future of Agentic AI: Join the Splunk Agentic Ops Hackathon

AI is changing how teams investigate incidents, detect threats, automate workflows, and build intelligent ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...