All Apps and Add-ons

Splunk newb querying vmware syslog

steveschofield
New Member

We are evaluating splunk as a syslog repository for our vmware hosts. I'm new to splunk querying and wondering if someone has done this before.

Here is a sample text in the logs I'd like to find out some summaries. There are a few ideas but this is a first attempt to extract data.

Device naa.1234567890 performance has deteriorated. I/O latency increased from average value of 10000 microseconds to 190000 microseconds. The bolded items are dynamic.

1) get a count by the second value (i.e greater than value (i.e 189,000) sorted by LUN numbers

The LUN shown in the example can be different and I'd like to order by that grouped by count. (I'm used to things like TSQL and Log parser). Learning to splunk 🙂

How do you evaluate text within a unstructured string text like this. I looked and don't see a field associated with this text.

0 Karma

steveschofield
New Member

This got me started! I should be able to build around this. We have some splunk training coming up as well so I'll post back any enhancements. Thanks!

0 Karma

hagjos43
Contributor

This should work my regex ability isn't stellar, so there might be a better way.

initial query |rex "Device\s(?<devicename>\S+)" | rex "latency\s\w+\s\w+\s\w+\s\w+\s\w+\s(?<originalvalue>\S+)" | rex "latency\s\w+\s\w+\s\w+\s\w+\s\w+\s\S+\s\w+\s\w+\s(?<newvalue>\S+)" | stats count by devicename, originalvalue, newvalue
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...