<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Table field with duplicating from lookup. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Table-field-with-duplicating-from-lookup/m-p/421021#M120960</link>
    <description>&lt;P&gt;@woodcock Thank you for the input this is perfect. I do not have control over many areas of my instance, though I am mostly the only user so I cant edit the lookup. Use case for me is to estimate the size of a summary index; I am generating a small lookup over 1 week to extrapolate out to get the estimated summary index size. The lookup in some cases has app and db servers with the same name so on a select few I get this issue.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2019 18:25:58 GMT</pubDate>
    <dc:creator>aohls</dc:creator>
    <dc:date>2019-08-01T18:25:58Z</dc:date>
    <item>
      <title>Table field with duplicating from lookup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-field-with-duplicating-from-lookup/m-p/421018#M120957</link>
      <description>&lt;P&gt;In my search below I am looking to make a table. I am running into an issue where my results go into a table. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   | lookup clients.csv hostname as host OUTPUT server_type as server_type, clientName as clientName
    | search server_type = app
     turbine_timing_component, turbine_timing_operation, turbine_timing_total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My lookup table can have the clientName matching twice, two different server types. This results in my table printing the clientName twice in each row. So what should be just clientName|... ends up being clientNameclientName|....&lt;/P&gt;

&lt;P&gt;I added the server type clause to try and make it only pull in that one time. Is there another function I should be looking at? It might be more an issue with how the lookup I am using was created.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 15:23:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-field-with-duplicating-from-lookup/m-p/421018#M120957</guid>
      <dc:creator>aohls</dc:creator>
      <dc:date>2019-08-01T15:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Table field with duplicating from lookup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-field-with-duplicating-from-lookup/m-p/421019#M120958</link>
      <description>&lt;P&gt;You have several options.  If you sort your lookup file so that the most important one is on top and then use &lt;CODE&gt;max_matches&lt;/CODE&gt; to limit to just 1:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Knowledge/Addfieldmatchingrulestoyourlookupconfiguration"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/Knowledge/Addfieldmatchingrulestoyourlookupconfiguration&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You could also leave it the way that it is and add this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| mvexpand clientName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will break it into 2 lines, you might then desire to sort it so that the importantest one is on top and then drop the others by further adding this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dedup clientName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Be aware that you might have to first call &lt;CODE&gt;| makemv clientname&lt;/CODE&gt; to make it a truly multi-value field (it may come out concatenated).&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 17:23:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-field-with-duplicating-from-lookup/m-p/421019#M120958</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-08-01T17:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table field with duplicating from lookup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-field-with-duplicating-from-lookup/m-p/421020#M120959</link>
      <description>&lt;P&gt;Can you please post sanitized lines from your lookup file for a row with a single client/server pair, and ones that result in a duplicate?&lt;/P&gt;

&lt;P&gt;BTW, if the field names don't need to change, then your OUTPUT can simply list the fields without renaming them.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 17:29:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-field-with-duplicating-from-lookup/m-p/421020#M120959</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2019-08-01T17:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Table field with duplicating from lookup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-field-with-duplicating-from-lookup/m-p/421021#M120960</link>
      <description>&lt;P&gt;@woodcock Thank you for the input this is perfect. I do not have control over many areas of my instance, though I am mostly the only user so I cant edit the lookup. Use case for me is to estimate the size of a summary index; I am generating a small lookup over 1 week to extrapolate out to get the estimated summary index size. The lookup in some cases has app and db servers with the same name so on a select few I get this issue.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 18:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-field-with-duplicating-from-lookup/m-p/421021#M120960</guid>
      <dc:creator>aohls</dc:creator>
      <dc:date>2019-08-01T18:25:58Z</dc:date>
    </item>
  </channel>
</rss>

