Getting Data In

Pull data from a script(sh or py) to show in Splunk without indexing

sibbsnb
Path Finder

Hi,

I need a command like dbquery(dbconnect) which when executed in Splunk searh returns data from a script's output.

How do i do that?

Search
| mycommand parm1 parm2 | table abc, efg

Result
script output shown in splunk which can be manipulated further by SPL commands

Tags (1)
0 Karma
1 Solution

bgaignon
Path Finder

Hi,

If I understand well you want to execute a script and not a command.

If it's well a script then you can follow this great answer here: how-to-execute-external-script-to-manipulate-file-from-search-command

If you want dbquery there is an App, here is the doc: http://docs.splunk.com/Documentation/DBX/1.1.3/DeployDBX/Commands

But if you are looking to execute a custom command in the search line, then I will not be helpful.

View solution in original post

0 Karma

bgaignon
Path Finder

Hi,

If I understand well you want to execute a script and not a command.

If it's well a script then you can follow this great answer here: how-to-execute-external-script-to-manipulate-file-from-search-command

If you want dbquery there is an App, here is the doc: http://docs.splunk.com/Documentation/DBX/1.1.3/DeployDBX/Commands

But if you are looking to execute a custom command in the search line, then I will not be helpful.

0 Karma

sibbsnb
Path Finder

i was able to execute in a similar way as provided in that link to pull data from script.

0 Karma
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 ...