Help Creating Splunk Queries

Rocky Cortez
Rocky Cortez used Ask the Experts™
on
I need assistance creating Splunk queries in order to create a Security Dashboard. I am looking for top ten search queries for the following security tools: Powerbroker, Palo Alto FW/IDS, Ironport Mail, Tripwire, Qualys, Nessus, McAfee, Vulnerabilities, Windows and Linux Security Logs. Basically any great search queries to get a overall security awareness dashboard.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2015

Commented:
You need to set up log collection first. After that you can learn queries.
btanExec Consultant
Distinguished Expert 2018

Commented:
Splunk need to normalise those log (supported format) from various sources before any search can be fruitful e.g. identifier for each log fields and their representation of its purposes. See the use of CIM  to normalize data at search time http://docs.splunk.com/Documentation/CIM/4.3.1/User/UsetheCIMtonormalizedataatsearchtime

Assuming you settled those setup already, the search will revolve minimally on the use to shiw the top threat and activities trends as far as I see. Kind of those dashboard report on top threat in ip, country, blacklisted actor, attack type, target, failed attempt, "near misses" like blocks on targets, etc...from a wkly, mthly and annual stats. The example in the cheatsheet may help - looking at the reporting and fields section examples.  http://docs.splunk.com/Documentation/Splunk/6.1.7/SearchReference/ListOfPopularSearchCommands

One on the 'top...' syntax use case for info https://answers.splunk.com/answers/59771/syntax-for-top-x-entries-per-y.html
Rocky CortezCyber Security Engineer

Author

Commented:
Logs have been normalized and everything is setup and ready for searching. I just need to create a dashboard showing top threats by ip, country, blacklisted actor, attack type, target, failed attempt, "near misses" like blocks on targets, etc...from a wkly, mthly and annual stats. At least 5 queries per security tool should suffice.
Exec Consultant
Distinguished Expert 2018
Commented:
In that case, good to do a check on some online saved example search in the community contributed resources. See this - the The Big Book of Splunk Searches may be a good starter.
https://answers.splunk.com/answers/372126/are-there-any-other-online-collections-of-splunk-s.html#answer-372127
You probably find something close and need to custonised the fields according amd feed into the dashboard.
For creating dashboard "dynamically", can see this sample.
https://answers.splunk.com/answers/186474/for-top-10-values-i-need-a-dashboardsearch-for-eac.html#answer-183544

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial