Splunk Search

Find Hosts which do their searches in alphabetical order

switch_dast
Explorer

Hi there

I have many log-entries with the two fields "host_address" (an IP address) and "query" (a search query). One entry per query. I would like to figure out which "host_addresses" do their queries in alphabetical order. That's it.

To be honest: I have no idea where to start!

The only thing I found was the following article:

[https://www.splunk.com/blog/2017/06/16/detecting-brute-force-attacks-with-splunk.html][1]

but it does not really help me eather. Can anyone?

Best regards, Dominic

Tags (1)

FrankVl
Ultra Champion

I guess you could do the following:

Sort by host and time in such a way that events are grouped by host and within that grouping sorted by time
Use a command like streamstats to give events a sequence number (restarting on host change)
Sort by host and query text in such a way that events are still grouped by host but within that grouping sorted by query text
Use the delta command to detect whether the sequence numbers are still in the same order, or completely mixed up

0 Karma

somesoni2
Revered Legend

Can you give example of what you'd call host_addresses in alphabetical order?

0 Karma

switch_dast
Explorer

Multiple Hosts invoke multiple text-based search-queries and I would like to know which hosts apply there SEARCH-QUERIES in alphabetical order. Usually they should be in more a or less random order. So I dan't care about the alphabetical order of the host_addresses but of the seach-queries!

0 Karma

renjith_nair
Legend

@switch_dast,

It couldn't be that simple, but are your looking for

index=* | table host_address,query|sort query
---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

switch_dast
Explorer

I dont think so.. I don't want so see the queries in sorted order - I want to know which hosts issue their queries in alphabetical order

0 Karma

switch_dast
Explorer

... and I don't want to figure out if the order is alphabetical by eye. Splunk should give me a list of host_addresses which behave like that. Late I want to generate alerts for hosts which behave in that way

0 Karma
Get Updates on the Splunk Community!

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...

Edge Processor Scaling, Energy & Manufacturing Use Cases, and More New Articles on ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...