Dashboards & Visualizations

Is there a way to ignore the 2nd value in a table cell ?

AKG1_old1
Builder

Hi,

In search query output, we are adding some columns from csv file. Some times there are duplicats entry in csv file. this causing to display multiple values in table cell. Is there a way to remove/ignore duplicate values from table cell ?

alt text

0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@agoyal

There are two ways to handle this scenario.

1st: You can change your search by adding eval for multivalue fields. like eval Tags= mvindex(Tags,0).

2nd: Allow matches from transform.conf.

[my_lookup]
filename    = my.csv
max_matches = 1

https://docs.splunk.com/Documentation/Splunk/7.2.0/Knowledge/Addfieldmatchingrulestoyourlookupconfig...

I prefer 2nd one.

Thanks

View solution in original post

kamlesh_vaghela
SplunkTrust
SplunkTrust

@agoyal

There are two ways to handle this scenario.

1st: You can change your search by adding eval for multivalue fields. like eval Tags= mvindex(Tags,0).

2nd: Allow matches from transform.conf.

[my_lookup]
filename    = my.csv
max_matches = 1

https://docs.splunk.com/Documentation/Splunk/7.2.0/Knowledge/Addfieldmatchingrulestoyourlookupconfig...

I prefer 2nd one.

Thanks

AKG1_old1
Builder

Thanks @kamlesh_vaghela !!

Can you please convert ur comment as answer.

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@agoyal

Glad to help you. Please upvote and accept this answer.

Happy Splunking

0 Karma

AKG1_old1
Builder

Cheers!!

0 Karma
Get Updates on the Splunk Community!

Notification Email Migration Announcement

The Notification Team is migrating our email service provider from Postmark to AWS Simple Email Service (SES) ...

Mastering Synthetic Browser Testing: Pro Tips to Keep Your Web App Running Smoothly

To start, if you're new to synthetic monitoring, I recommend exploring this synthetic monitoring overview. In ...

Splunk Edge Processor | Popular Use Cases to Get Started with Edge Processor

Splunk Edge Processor offers more efficient, flexible data transformation – helping you reduce noise, control ...