Splunk Search

Is it possible to use Linux commands in the search as a normal user?

vil505
Explorer

As a normal user, is there any way for me to use:

ps -aux| grep httpd| wc -l

in Splunk's search bar? I'm trying to get a line count on logs through it.

0 Karma

sundareshr
Legend

You can create a custom search command that executes a perl/python script that calls the Linux command

http://docs.splunk.com/Documentation/Splunk/6.1.1/Admin/Commandsconf

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...