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!

Stay Connected: Your Guide to January Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...