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
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!

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 ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...