Good morning, I got a query like this
[| makeresults count=0]
| append
[ search (index="my_index"]
When I use to setup analert like
earliest="04/11/2025:12:10:01" latest="04/11/2025:12:20:01" `mymacro` | table _time IP
this is not picking up the events in that time frame. however when I expand to 8hours from dropdown it is showing results.
Any one can help provide approach for this issue?
My macro looks like this
[|makeresults count=0]
| append
[ search `mymacro`
| rex ---
| rex ---
| rex ---
| eval --
| eval ---
| fields _time, -,-]
| lookup ---
| lookup ---
| lookup ---
| search ---
----------------------------------
I'm building a scheduled alert which runs this macro using earliest and latest time period
earliest="04/11/2025:12:10:01" latest="04/11/2025:12:20:01" `mymacro` | table _time IP
So this time range is not passing within above macro subquery which is nested.
Hope this give you more info.
It is not clear what your issue is - if you specify earliest and latest using the format you have used, they appear to be passed to a macro (that begins with "index=...") - if you don't specify an overriding time, the time specified by the search also seem to be used. Please provide more precise detail as to what your macro actually is (obfuscating as minimally as possible) and how you have used it in the search, and how you have set up the alert.
Hi @shashigari ,
as also @livehybrid said, it isn't so clear why you are using this structure of search.
In addition, you are using a macro that we don't know.
Anyway, the format of time in earliest and latest is correct.
Could you better describe your requirement and share your macro?
Ciao.
Giuseppe
Hi @shashigari
Sorry it isnt clear to me which search is having the issue. I'm not sure why you are doing a makeresults followed by an append?
Are you specifying the earliest/latest in your subsearch/append search?
Please can you post your full search with the issue.
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing