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!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...