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
SplunkTrust
SplunkTrust

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
SplunkTrust
SplunkTrust

@switch_dast,

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

index=* | table host_address,query|sort query
Happy Splunking!
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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...