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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...