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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...