Splunk Search

splunk query

DTERM
Contributor

I found the following Splunk query that tells the local disk space. Is there a similar command that I could use to query stats like diskspace from another host. (I know how to do this through SSH, however I need the splunk'd solution.) Thanks!

[root@splunk bin]# ./splunk search "sourcetype=df | multikv | dedup host,Filesystem | rex field=UsePct \"(?\d+)\"" admin:changeme

/dev/sda3 ext4 46G 6.1G 37G 15% /

/dev/sda1 ext4 248M 47M 189M 20% /boot

Tags (1)
0 Karma
1 Solution

Lamar
Splunk Employee
Splunk Employee

You could put a forwarder on said 'remote' server, install the *NIX app on it and have it feed your indexer File System usage information via the sourcetype 'df'...

Then, you could see all of your servers at the same time...just sayin...

View solution in original post

Lamar
Splunk Employee
Splunk Employee

You could put a forwarder on said 'remote' server, install the *NIX app on it and have it feed your indexer File System usage information via the sourcetype 'df'...

Then, you could see all of your servers at the same time...just sayin...

DTERM
Contributor

Perfect!! Thanks so much!!

0 Karma

Lamar
Splunk Employee
Splunk Employee

Indeed.

Please take a look at this thread for possible pitfalls:

http://splunk-base.splunk.com/answers/13202/splunk-42-universal-forwarder-nix-app-install-via-cli

0 Karma

DTERM
Contributor

Will the Unix application work on a universal forwarder? The objective is to have Splunk perform a few simple remote queries.

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...