Dedup is not working on Splunk

Please see picture below. I inserted dedup for job_duration, but it was not showing in the search result. I only need one result to do visualisation.

screenshot

1

2 Answers

It looks like job_min is a multi-value field, which are not supported by dedup. Try ... | eval job_min=mvdedup(duration) | ....

If job_min is in a multivalue field, you should mvexpand first

And, instead of dedup, try using stats

Like this:

| mvexpand job_min
| stats count by job_min
| fields - count

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like