Hi,
source="dbmon-tail://idwarehouse/idw_account" application=TFAYD [|inputlookup execSSO.csv |rename sso as owner] |eval exp_date=strftime(relative_time(strptime(lastPasswordChange,"%Y-%m-%d %H:%M:%S"),"+90d@d"), "%Y/%m/%d %H:%M") |eval exp_day=exp_date - lastPasswordChange | where exp_date < strftime(relative_time(strptime(lastPasswordChange,"%Y-%m-%d %H:%M:%S"),"+90d"),"%Y-%m-%d %H:%M:%S") |rename lastPasswordChange as lastpasswordchangedate ,
I am trying to get the exp_day ,
|eval exp_day=exp_date-lastPasswordChange | where exp_date < strftime(relative_time(strptime(lastPasswordChange,"%Y-%m-%d %H:%M:%S"),"+90d"),"%Y-%m-%d %H:%M:%S")
This exp_day query is correct ? correct me if i am wrong .... i am trying to get the expire day .... 🙂
any can help me on this ...
other output is good ,
other outputs are,
application =TFAYD
exp_date =2014-11-04 00:00:00 ( it is correct, calculating from
lastPasswordChange)
lastpasswordchangedate =2014-08-06 11:11:43
owner =501936069
refreshedDate =2014-09-29 09:15:24
sourcetype =mysql
Trying to add the field for exp_day ..... 🙂
Thank u ...
Regards,
Siraj
,source="dbmon-tail://idwarehouse/idw_account" application=TFAYD [|inputlookup execSSO.csv |rename sso as owner] |eval exp_date=strftime(relative_time(strptime(lastPasswordChange,"%Y-%m-%d %H:%M:%S"),"+90d@d"), "%Y/%m/%d %H:%M") |eval exp_day=exp_date-lastPasswordChange | where exp_date < strftime(relative_time(strptime(lastPasswordChange,"%Y-%m-%d %H:%M:%S"),"+90d"),"%Y-%m-%d %H:%M:%S") |rename lastPasswordChange as lastpasswordchangedate ,
I am trying to get the exp_day ,
|eval exp_day=exp_date-lastPasswordChange | where exp_date < strftime(relative_time(strptime(lastPasswordChange,"%Y-%m-%d %H:%M:%S"),"+90d"),"%Y-%m-%d %H:%M:%S")
This exp_day query is correct ? correct me if i am wrong .... i am trying to get the expire day .... 🙂
any can help me on this ...
other output is good ,
other outputs are,
application =TFAYD
exp_date =2014-11-04 00:00:00 ( it is correct, calculating from
lastPasswordChange)
lastpasswordchangedate =2014-08-06 11:11:43
owner =501936069
refreshedDate =2014-09-29 09:15:24
sourcetype =mysql
Trying to add the field for exp_day ..... 🙂
Thank u ...
Regards,
Siraj
... View more