Splunk Search

How to resolve error in my geostats search "Error in 'geostats' command: The argument 'over' is invalid"?

raindrop18
Communicator

I have this search and I keep getting "Error in 'geostats' command: The argument 'over' is invalid". How I can replace "over" to get what I am expecting?

index=X source=X host=XX "request from IP *"  | rex "(?i) IP (?P[^ ]+)"   |  rex "(?i) username (?P[^ ]+)"  | iplocation clientIP | geostats latfield=lat longfield=lon | iplocation clientIP | geostats latfield=lat longfield=lon dc(UsrName) over clientIP 
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi raindrop18,
try something like this:

index=X source=X host=XX "request from IP *" 
| rex "(?i) IP (?P[^ ]+)" 
| rex "(?i) username (?P[^ ]+)" 
| iplocation IP
| geostats latfield=lat longfield=lon dc(UsrName) by clientIP 

see http://docs.splunk.com/Documentation/Splunk/6.5.3/SearchReference/Geostats

Bye.
Giuseppe

raindrop18
Communicator

so this query on regular chart showed me, sorted the client IP has the highest number of username. just added "| sort - dc(UsrName)" at the end. currently on geostats only see the lowest number.

0 Karma

raindrop18
Communicator

thanks much Giuseppe, quick question is that possible to sort the out put on Geostats?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Output should be sorted by clientIp.
What is the field you would use?
Bye.
Giuseppe

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...