Splunk Search

What's the bare minimum for extending the built-in search functionality?

stevebctr
Engager

I've read the concepts page, and a lot of the App Framework documentation over at dev.splunk.com. But I still don't have a good picture of what it takes to add the bare minimum functionality not supported within the default Splunk apps.

I know how to get all the DNS lookups in Splunk. I know how to write a bloom filter in Python and find all entries that aren't in the Alexa top 1,000,000 domains, with 99.99% accuracy and low memory/CPU requirements.

But I don't know how to get the results of that Splunk DNS lookup into my python script, and back into the output of a Splunk search. All the howtos and tutorials seem to be saying that I have to build a heavyweight MVC app to accomplish it; and it seems like there should be a much easier way.

Tags (4)
0 Karma
1 Solution

ChrisG
Splunk Employee
Splunk Employee

Not sure if this will help (or if you've already seen it), but have you looked at the documentation topic about custom search commands?

View solution in original post

ChrisG
Splunk Employee
Splunk Employee

Not sure if this will help (or if you've already seen it), but have you looked at the documentation topic about custom search commands?

gkanapathy
Splunk Employee
Splunk Employee

the dns lookup script is itself an example of a scripted python search command.

0 Karma

stevebctr
Engager

As far as I can tell, that's exactly what I was hoping existed. Thanks!
I'll come back for more if it turns out, later, that doesn't do it.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...