Splunk Search

How to edit my current search to remove duplicate rows from the resulting table?

shivendra_infy
Path Finder

Hi

I am using a table which shows up duplicates. Example shown below.
Is there a way to write a search which removes duplicates from the table?
I am pasting the search here for reference.

*index= source="dbmon-tail://db" Status = "2" Track_Name = "Ab-Initio"|convert timeformat="%Y-%m-%d %H:%M:%S" ctime(_time) AS UpdateDateTime |table UpdateDateTime, Track_Name,Application_Name,Component_Name,Status_Desc,lts_error_description,Comments

This above search returns the two rows below, of which I need only the latest one based on date.

alt text

0 Karma

rjthibod
Champion

I think it would be helpful if you could expand on what fields determine the unique rows you want to keep. Right now that seems unclear.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Look into the dedup command.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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