So this is what my data looks like. I need to check if the last column value is in the range of last 75 days. In other words, the date is later than last 75 days. How can i proceed?
Hi @sam1010
| makeresults
| eval access_key_creation_time="2021-06-25 12:20:03" , now=now()
| eval date_n=strptime(access_key_creation_time, "%Y-%m-%d %H:%M:%S")
| eval diff= now - date_n
| eval days = diff / 86400
| eval result = case(days <= 75, "YES", days > 75, "NO", isnull(access_key_creation_time), "NA")
Try above and output will be YES, NO or NA for null showed under result field.
---
An upvote would be appreciated if this reply helps!