Getting Data In

How to display latest Linux os values grouped by hosts

zoveress
Engager

I need to display the latest cpu, memory, etc information grouped by host in a table format. I have managed to pull cpu or memory individually or if I use stats it will only display the latest value which isn't grouped by host. My initial search which lists the CPU load by host is:

host=* index="linuxos" CPU=all  | dedup host | rename host as name | eval id = "urn:host:/".name  , type="vm", tags=id, identifiers=id | table id type name tags identifiers cpu_load_percent

I need to expand this to memory and possibly even more os related information.

1 Solution

woodcock
Esteemed Legend

Like this:

index="linuxos" AND CPU="all"
| fields host id type tags identifiers cpu_load_percent and other metrics fields here
| stats latest(*) AS * BY host

View solution in original post

0 Karma

woodcock
Esteemed Legend

Like this:

index="linuxos" AND CPU="all"
| fields host id type tags identifiers cpu_load_percent and other metrics fields here
| stats latest(*) AS * BY host
0 Karma
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 ...