Ad slot: top

SPL

Memory Usage and Information on Splunk Server

Description

Submitted by ItsJohnLocke

This Splunk Search Query will perform a rest call to indicate current memory consumption on the Splunk server(s) itself/themselves:
*NOTE* The following has been modified from the "Distributed Management Console" to be more generic for a copy, paste, and search example.
5 0
| rest splunk_server=* /services/server/status/resource-usage/hostwide  | stats first(normalized_load_avg_1min) as load_average first(cpu_system_pct) as system, first(cpu_user_pct) as user first(mem) AS mem first(mem_used) AS mem_used by splunk_server | fields splunk_server mem mem_used | eval pctmemused=round((mem_used/mem)*100)."%" | table splunk_server pctmemused | rename splunk_server as "Splunk Server" pctmemused as "Percent of Memory Used"

Comments

0 total

Be the first to comment on this SPL.

Leave a comment

You must log in to post a comment.

Ad slot: bottom