Splunk Search

multiple search question

a212830
Champion

Hi,

I want to create a report on syslog messages received from the same file, which come from different types of devices, with different formats (Cisco, HP, Arista, Brocade). I can't route the messages to different files. Is there a way to do a single search that will show the number of "message types", even if the format is different?

For example:

Cisco: %CDP-4-DUPLEX_MISMATCH:
HP: %%10MSTP/1/PFWD(t):
Arista: : %LINEPROTO-5-UPDOWN:
Brocade: VRRP-Extended:

Each of these are message types that I want to report on, and they exist in the same file. I don't think a single regex would capture them all, so is there another option?

Tags (3)
0 Karma

melonman
Motivator

You can use eventtype.
First you need to create eventtype for each event - Cisco, HP, Arista and Brocate,
and then, search and count for each eventtype like this:

... | stats count by eventtype

http://docs.splunk.com/Documentation/Splunk/5.0.1/Knowledge/ClassifyAndGroupSimilarEvents

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!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...