Dashboards & Visualizations

How to compare entry date to revisit date?

Italy1358
Path Finder

Need to compare between the date that the user was entered in the lookup table to the revisit month selected.

add panel:
<panel depends="$add$">
<title>Add User</title>
<table>
<search>
<query>
| inputlookup USB.csv
| append [ | makeresults
| eval user="$user_tok$", description="$description_tok$", revisit="$revisit_tok$", Action="$dropdown_tok$"]
| eval today=strftime(
| table _time, user, category, department, description, revisit
| lookup lookup_im user as user OUTPUT category department
| outputlookup USB.csv</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
<done>
<unset token="add"></unset>
</done>
</search>
<option name="drilldown">none</option>
<option name="refresh.display">progressbar</option>
</table>
</panel>

 

reauthorize panel:

<panel depends="$reauthorize$">
<title>Reauthorize User</title>
<table>
<search>
<query>
| inputlookup USB.csv
</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
</search>
<option name="drilldown">none</option>
<option name="refresh.display">progressbar</option>
</table>
</panel>
0 Karma

somesoni2
Revered Legend

Could you explain little more about your requirements with some sample values?

Tags (1)
0 Karma

Italy1358
Path Finder

I have four fields, User Description, Revisit, and Action. The User and Descriotion are text fields while revisit and action are dropdown values.
Revisit: 1 month, 2 month, 3 month, 4 month, 5 month, 6 month.

Action: add, remove, reauthorize 

When a user is added I need to record the time and check it against the revisit month that was chosen so that if it is past the revisit month then the user is inactive. This will be written to the usb.csv lookup table. 
@somesoni2 

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...