Getting Data In

Collecting data with Perfmon: instances with spaces in truncated when ingested to metrics index

eddieddieddie
Path Finder

I'm using Splunk to collect the state of Microsoft IIS web server app pools. I've noticed that when the Universal Forwarder collects Perfmon data that has instance names with spaces in, and when ingested into a Metrics index, that the instance name after the first space is lost. But this doesn't happen if I ingested into a normal index.

Here is my configuration in the inputs.conf file:

[perfmon://IISAppPoolState]
interval = 10
object = APP_POOL_WAS
counters = Current Application Pool State
instances = *
disabled = 0
index = metrics_index
mode=single
sourcetype = perfmon:IISAppPoolState

It is on a machine which has IIS pools which have spaces in there names - ie "company website" "company portal" "HR web"

When this data is ingested into the metrics index and accessed via the following Splunk command:

| mstats latest(_value) as IISAppPoolState WHERE index=metrics_index metric_name="IISAppPoolState.Current Application Pool State" by instance, host

I end up with instance values that truncate at the first space. So "company website" becomes just "company" (and who knows what happens to "company portal").

However if I direct the data into a normal index the instance names are wrapped in quotes and the space in the instance name persevered.

Is there anyway to fix this behaviour? Collecting this data into a metrics index has worked fine until now but thanks to this server having IIS site names with spaces in them it's causing a real problem.

 

Thanks for your thoughts!
Eddie

Labels (2)
Tags (2)
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!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...