Getting Data In

Get Perfmon drive info for specific disks Splunk 6.1

feickertmd
Communicator

This is somewhat of a repeat question, but since the original is a couple of years old and does not produce results for me, I am resurrecting it to see if methods have changed.

I get Perfmon results in my splunk instance for total drive space instead of for individual drives (which would be more valuable). I tried using the tips in this article, but still meet with failure: http://answers.splunk.com/answers/41550/getting-drive-specific-disk-space-information-from-hosts.htm...

Please help! how can I get my individual drive data?

Tags (2)

martin_mueller
SplunkTrust
SplunkTrust

In the inputs.conf collecting your data, make sure you set instance = * instead of instance = Total. Then check that you're getting events for each instance rather than just combined values.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Well, I'm slowly running out of questions to ask... anything interesting in _internal for that forwarder?

Do open a support ticket for this, sounds very fishy indeed.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Hummm. What happens if you explicitly list instances that are available in the local Perfmon?

0 Karma

feickertmd
Communicator

I tried. same problem.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Restarted the UF after making the inputs.conf change?

0 Karma

feickertmd
Communicator

Affirmative

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

So, are there any events with instance not equals Total?

0 Karma

feickertmd
Communicator

Nope. That's what I'm trying to accomplish!

0 Karma

feickertmd
Communicator

Have done so already:

[perfmon:FreeDiskSpace]
counters = Free Megabytes;% Free Space
disabled = 0
instances = *
interval = 5
object = LogicalDisk
0 Karma

feickertmd
Communicator

I saw your comment on the other post as well. I have no index called perfstats, and there is no field called %_Free_Space in my perfmon sourcetype. When I adjusted your search to match the value field in perfmon, it listed it (as your query suggests) by the host name only, NOT by drive letter.

Sorry!

0 Karma

mark_chuman
Path Finder

What field are you using to get the total drive space? I hit that same problem, but was initially using %_Free_Space and it would return free space percentage across all drives.

0 Karma

feickertmd
Communicator

Here's a sample of my data:

Host Value app collection counter eventtype host index instance linecount object product punct source sourcetype splunk_server unix_category unix_group vendor raw _time
apset0725 56.79023063 Free Disk Space % Free Space perfmon windows_performance apset0725 it_test _Total 6 LogicalDisk //
::.-\r=""\r=\r="%"\r=\r=. Perfmon:Free Disk Space Perfmon:Free Disk Space apsrd3084 all_hosts default "12/12/2014 15:23:17.778 -0600
collection=""Free Disk Space""
object=LogicalDisk
counter=""% Free Space""
instance=_Total
Value=56.790230633446193" 2014-12-12T15:23:17.000-0600
apset0725 78500 Free Disk Space Free Megabytes perfmon windows_performance apset0725 it_test _Total 6 LogicalDisk //
::.-\r=""\r=\r=""\r=\r= Perfmon:Free Disk Space Perfmon:Free Disk Space apsrd3084 all_hosts default "12/12/2014 15:23:17.778 -0600
collection=""Free Disk Space""
object=LogicalDisk
counter=""Free Megabytes""
instance=_Total
Value=78500" 2014-12-12T15:23:17.000-0600

0 Karma

mark_chuman
Path Finder

Try this for drive C, for example.

index=perfstats host=servername C | timechart avg("%_Free_Space") by host

or for drive D

index=perfstats host=servername D | timechart avg("%_Free_Space") by host

0 Karma
Get Updates on the Splunk Community!

Update Your SOAR Apps for Python 3.13: What Community Developers Need to Know

To Community SOAR App Developers - we're reaching out with an important update regarding Python 3.9's ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Automatic Discovery Part 2: Setup and Best Practices

In Part 1 of this series, we covered what Automatic Discovery is and why it’s critical for observability at ...