Splunk Search

Find Hosts which do their searches in alphabetical order


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:


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

Best regards, Dominic

Tags (1)

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

Revered Legend

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

0 Karma


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



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


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


... 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!

Thanks for the Memories! Splunk University, .conf24, and Community Connections

Thank you to everyone in the Splunk Community who joined us for .conf24 – starting with Splunk University and ...

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...