All Apps and Add-ons

*Nix add-on with official universal forwarder docker: cannot run nor install sar/mpstat in splunk's official container


We're able to partially get the official Splunk universal forwarder docker container to run the official *Nix add-on so an endpoint can collect & send its basic host metrics, but some of the add-on's host metrics collector scripts fail, such as

[ansible@alpha bin]$ cat
Not found any of commands [sar mpstat] on this host, quitting

Most scripts run fine like netstat/top/ps as we do docker run --pid=host. However, it looks like the official container is stripped down, so has missing dependencies as above.

We were just going to apt-get install sar... except we see no apt-get/apt/apk/yum:

-- Is there an alternate universal forwarder container we can put on these endpoints? This feels like the usual "alpine vs slim" issue, and other enterprise projects do stuff like dual releases here, but I couldn't find any.

-- Is there some other way to install those packages while keeping the forwarder in a slim container?

0 Karma

New Member

In have Splunk Enterprise as the Indexer and the Search Header, I´m triyng to collect performance data from a linux server so I installed in the server the Universal Forwarder and the Splunk_TA_nix Add On. I did the basics configuration to inputs.conf but at the end I didt collect the performance data like lsoft,top,nstats,etc.
How did you achive to collect netstat,top,ps?

0 Karma


Do you have dev tools available? You could install sar from source. The source for it can be found at :

tar -xvf sysstat-12.1.4.tar.bz2
cd sysstat-12.1.4/
./configure --enable-install-cron
make install

0 Karma


Unfortunately not - no make etc. either. AFAICT the official container won't work as a multi-stage build phase either. Looks like we may need to make an unofficial container 😞

0 Karma
Get Updates on the Splunk Community!

Happy CX Day to our Community Superheroes!

Happy 10th Birthday CX Day!What is CX Day? It’s a global celebration recognizing innovation and success in the ...

Check out This Month’s Brand new Splunk Lantern Articles

Splunk Lantern is a customer success center providing advice from Splunk experts on valuable data insights, ...

Routing Data to Different Splunk Indexes in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. The OpenTelemetry project is the second largest ...