Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Search query: Unique values based on time

$
0
0
Hi Community, I'm using the search query to search for the user activity and I get the results with duplicate rows with the same user with the same time. The time format is as follows: YYYY-DD-MM HH:MM:SS:000. I get the result as following: USER | TIME abcd | 2020-06-01 08:58:51 abcd | 2020-06-01 08:58:51 abcd | 2020-06-01 08:58:51 abcd | 2020-06-01 09:32:27 abcd | 2020-06-01 09:32:27 abcd | 2020-06-01 09:32:27 ---------- The output I desire is: USER | TIME abcd | 2020-06-01 08:58:51 abcd | 2020-06-01 09:32:27 ---------- Search query I'm using is: index="uam" User="abcd" | eval access_time=strftime(_time, "%Y-%d-%m %H:%M:%S") | fields "USER" "TIME" ---------- How do I get the unique values, because it seems that Splunk compares the time upto milliseconds. Can anyone please help me out? Thanks, Sid

Viewing all articles
Browse latest Browse all 47296

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>