All Apps and Add-ons

How to create a chart with sub search results

cheukkay
Engager

Hey ,
I used sub search and manage to get the results i wanted , however , the splunk dashboard is creating my graphs wrongly. May i know how do i customize it to my needs?

My search command is :
sourcetype="honetnet" [search sourcetype ="honetnet" | top limit=10 SPT | fields SPT] |top limit=3 SRC BY SPT

whereby is search the top 10 SPT (source ports) and then i search the top 3 SRC (source ip addresses) that accessed this ports. But i cant seem to create charts with the results. Any idea? Thanks

0 Karma

jtrucks
Splunk Employee
Splunk Employee

Try using appendcols to merge the results together. I've had success with this in the past.

For example:

sourcetype="honetnet" | appendcols [search sourcetype ="honetnet" | top limit=10 SPT | fields SPT] |top limit=3 SRC BY SPT

That might work for you.

--
Jesse Trucks
Minister of Magic
Get Updates on the Splunk Community!

Take the 2021 Splunk Career Survey for $50 in Amazon Cash

Help us learn about how Splunk has impacted your career by taking the 2021 Splunk Career Survey. Last year’s ...

Using Machine Learning for Hunting Security Threats

WATCH NOW Seeing the exponential hike in global cyber threat spectrum, organizations are now striving more for ...

Observability Newsletter Highlights | March 2023

 March 2023 | Check out the latest and greatestSplunk APM's New Tag Filter ExperienceSplunk APM has updated ...