Splunk Search

searching for disk and network commands

HY
Explorer

Does anyone know how do I perform a search on the "top 10 processes by disk" which consists of the names as well as the total memory for the disks, in addition to the used and free space? Then for "top 10 processes by network", I need the names, sent(MB) as well as received(MB).

0 Karma

Voltaire
Communicator

Have you looked at the Splunk Cisco firewall, *nux or Windows app? It has many default system, disk, network searches that may be a good place to start. You can also referr to the event types for examples from the manager.
Here is a Search.Winfreediskspace example from Windows app.
source=WMI:FreeDiskSpace NOT localhost | stats first(FreeMegabytes) as free last(FreeMegabytes) as oldfree by host Name | eval "Change from 24 hours ago (MB)" = tostring(free - oldfree, "commas") | fields -

0 Karma

HY
Explorer

I have tried making use of the default commands but I still won't be able to get the commands right

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!

[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 ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...