Splunk Search

command map not working

jrodriguezap
Contributor

Hi everyone
Someone who has used the map command who can help me, I am trying to bind the username of the 12 hours before the first search, but the result does not give any value

This is my query, maybe I'm doing something wrong

host=10.10.10.30 direction=in earliest=-15m latest=-1m| stats count by src_ip | map search="host=10.10.10.30 earliest=-12h latest=-15m  src_ip=$src_ip$ username=*"
0 Karma
1 Solution

to4kawa
Ultra Champion
 host=10.10.10.30 direction=in earliest=-15m latest=-1m
| stats count by src_ip 
| map search="search host=10.10.10.30 earliest=-12h latest=-15m  src_ip=$src_ip$ username=*"

see https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Map

View solution in original post

to4kawa
Ultra Champion
 host=10.10.10.30 direction=in earliest=-15m latest=-1m
| stats count by src_ip 
| map search="search host=10.10.10.30 earliest=-12h latest=-15m  src_ip=$src_ip$ username=*"

see https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Map

jrodriguezap
Contributor

It is true, I miss adding that.
Thanks a lot

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...