<?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: Remove Alike Values in a Field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/579991#M202085</link>
    <description>&lt;P&gt;Sorry, that doesn't really help. Can you provide (sanitised) examples of your raw events and the searches you are currently using to get your current results?&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 12:42:15 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-01-05T12:42:15Z</dc:date>
    <item>
      <title>Remove Alike Values in a Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/579968#M202075</link>
      <description>&lt;P&gt;Hello Splunk Answers, How can I remove this duplicate line? See sample below:&lt;/P&gt;&lt;P&gt;From:&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1&amp;nbsp; &amp;nbsp; &amp;nbsp;row2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;row3&lt;BR /&gt;1.1.1.1&amp;nbsp; XXX&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;alpha.splunk.com&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;alpha&lt;BR /&gt;2.2.2.2&amp;nbsp; YYY&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;beta.splunk.com&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BETA&lt;BR /&gt;3.3.3.3&amp;nbsp; ZZZ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delta.splunkanswers.com&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;delta&lt;BR /&gt;4.4.4.4&amp;nbsp; AAA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; abcdefgh&lt;BR /&gt;&lt;BR /&gt;to:&amp;nbsp;&lt;BR /&gt;row1&amp;nbsp; &amp;nbsp; &amp;nbsp;row2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;row3&lt;BR /&gt;1.1.1.1&amp;nbsp; XXX&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;alpha.splunk.com&lt;BR /&gt;2.2.2.2&amp;nbsp; YYY&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;beta.splunk.com&lt;BR /&gt;3.3.3.3&amp;nbsp; ZZZ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delta.splunkanswers.com&lt;BR /&gt;4.4.4.4&amp;nbsp; AAA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; abcdefgh&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 09:43:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/579968#M202075</guid>
      <dc:creator>whitefang1726</dc:creator>
      <dc:date>2022-01-05T09:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Alike Values in a Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/579972#M202078</link>
      <description>&lt;P&gt;It is not clear what these "lines" are - are they all in a single field called row3 with linebreaks? are they multivalues? have they been created by stats values/list functions, or transaction commands?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 10:05:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/579972#M202078</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-05T10:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Alike Values in a Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/579989#M202083</link>
      <description>&lt;P&gt;Okay, here's another example.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;from:&amp;nbsp;&lt;BR /&gt;field1 field2 field3 field4&lt;BR /&gt;row1 1.1.1.1 XXX alpha.splunk.com&lt;BR /&gt;alpha&lt;BR /&gt;row2 2.2.2.2 YYY beta.splunk.com&lt;BR /&gt;BETA&lt;BR /&gt;row3 3.3.3.3 ZZZ delta.splunkanswers.com&lt;BR /&gt;delta&lt;BR /&gt;row4 4.4.4.4 AAA abcdefgh&lt;/P&gt;&lt;P&gt;to:&lt;BR /&gt;field1 field2 field3 field4&lt;BR /&gt;row1 1.1.1.1 XXX alpha.splunk.com&lt;BR /&gt;row2 2.2.2.2 YYY beta.splunk.com&lt;BR /&gt;row3 3.3.3.3 ZZZ delta.splunkanswers.com&lt;BR /&gt;row4 4.4.4.4 AAA abcdefgh&lt;/P&gt;&lt;P&gt;or:&lt;/P&gt;&lt;P&gt;field2 field3 field4&lt;BR /&gt;1.1.1.1 XXX alpha.splunk.com&lt;BR /&gt;2.2.2.2 YYY beta.splunk.com&lt;BR /&gt;3.3.3.3 ZZZ delta.splunkanswers.com&lt;BR /&gt;4.4.4.4 AAA abcdefgh&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 12:38:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/579989#M202083</guid>
      <dc:creator>whitefang1726</dc:creator>
      <dc:date>2022-01-05T12:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Alike Values in a Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/579991#M202085</link>
      <description>&lt;P&gt;Sorry, that doesn't really help. Can you provide (sanitised) examples of your raw events and the searches you are currently using to get your current results?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 12:42:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/579991#M202085</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-05T12:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Alike Values in a Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/580082#M202126</link>
      <description>&lt;P&gt;This is a sample output using stats values. Sorry, I give a wrong example. Here's the current one.&lt;BR /&gt;&lt;BR /&gt;from:&lt;BR /&gt;field1&amp;nbsp; &amp;nbsp; &amp;nbsp;field2&amp;nbsp; &amp;nbsp; &amp;nbsp;field3&amp;nbsp; &amp;nbsp; &amp;nbsp;field4&lt;BR /&gt;row1&amp;nbsp; &amp;nbsp; &amp;nbsp;1.1.1.1&amp;nbsp; &amp;nbsp; &amp;nbsp;XXX&amp;nbsp; &amp;nbsp; &amp;nbsp;alpha.splunk.com&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;alpha&lt;BR /&gt;row2&amp;nbsp; &amp;nbsp; &amp;nbsp;2.2.2.2&amp;nbsp; &amp;nbsp; &amp;nbsp;YYY&amp;nbsp; &amp;nbsp; &amp;nbsp;beta.splunk.com&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BETA&lt;BR /&gt;row3&amp;nbsp; &amp;nbsp; &amp;nbsp;3.3.3.3&amp;nbsp; &amp;nbsp; &amp;nbsp;ZZZ&amp;nbsp; &amp;nbsp; &amp;nbsp;delta.splunkanswers.com&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;delta&lt;BR /&gt;row4&amp;nbsp; &amp;nbsp; &amp;nbsp;4.4.4.4&amp;nbsp; &amp;nbsp; &amp;nbsp;AAA&amp;nbsp; &amp;nbsp; &amp;nbsp;abcdefgh&lt;BR /&gt;&lt;BR /&gt;To:&amp;nbsp;&lt;BR /&gt;field1&amp;nbsp; &amp;nbsp; &amp;nbsp;field2&amp;nbsp; &amp;nbsp; &amp;nbsp;field3&amp;nbsp; &amp;nbsp; &amp;nbsp;field4&lt;BR /&gt;row1&amp;nbsp; &amp;nbsp; &amp;nbsp;1.1.1.1&amp;nbsp; &amp;nbsp; &amp;nbsp;XXX&amp;nbsp; &amp;nbsp; &amp;nbsp;alpha.splunk.com&lt;BR /&gt;row2&amp;nbsp; &amp;nbsp; &amp;nbsp;2.2.2.2&amp;nbsp; &amp;nbsp; &amp;nbsp;YYY&amp;nbsp; &amp;nbsp; &amp;nbsp;beta.splunk.com&lt;BR /&gt;row3&amp;nbsp; &amp;nbsp; &amp;nbsp;3.3.3.3&amp;nbsp; &amp;nbsp; &amp;nbsp;ZZZ&amp;nbsp; &amp;nbsp; &amp;nbsp;delta.splunkanswers.com&lt;BR /&gt;row4&amp;nbsp; &amp;nbsp; &amp;nbsp;4.4.4.4&amp;nbsp; &amp;nbsp; &amp;nbsp;AAA&amp;nbsp; &amp;nbsp; &amp;nbsp;abcdefgh&lt;BR /&gt;&lt;BR /&gt;So, for field4, alpha.splunk.com and alpha is just one value (multi-value), beta and beta.splunk.com is one value (multi-value), so on...&lt;BR /&gt;I want to remove the redundant names (hostname only and host with FQDN) as long it same value (example: &lt;STRONG&gt;alpha&lt;/STRONG&gt; and &lt;STRONG&gt;alpha&lt;/STRONG&gt;.splunk.com)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 05:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/580082#M202126</guid>
      <dc:creator>whitefang1726</dc:creator>
      <dc:date>2022-01-06T05:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Alike Values in a Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/580084#M202127</link>
      <description>&lt;P&gt;If they are multivalue fields and you want the first:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval row3=mvindex(row3, 0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 06:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/580084#M202127</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-01-06T06:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Alike Values in a Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/580226#M202171</link>
      <description>&lt;P&gt;This works, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 07:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-Alike-Values-in-a-Field/m-p/580226#M202171</guid>
      <dc:creator>whitefang1726</dc:creator>
      <dc:date>2022-01-07T07:59:24Z</dc:date>
    </item>
  </channel>
</rss>

