<?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 Duplicate events causing conflict - how to eliminate in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Duplicate-events-causing-conflict-how-to-eliminate/m-p/155224#M43669</link>
    <description>&lt;P&gt;I'm trying to create a series of inputs that require a change on selection. &lt;/P&gt;

&lt;P&gt;The first one drops down a list of users via a lookup table. It also pulls a list of states associated to their names. The query looks like this: &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;sourcetype=XXX | lookup territory.csv State as "Abbrev_State" OUTPUT Rep as Rep | top Rep | dedup Rep&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;*** my sourcetype has the information on states and cities. The original sourcetype is a CSV. I uploaded the lookup. dedup has not solved this problem for me. &lt;/P&gt;

&lt;P&gt;The second query is meant to drop down the states associated with their names. I'm also getting the same error on duplicate labels. &lt;BR /&gt;
Here's my Query: &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;sourcetype=XXX | lookup territory.csv State as "Abbrev_State" OUTPUT Rep as Rep | search Rep="XXXX" | stats values(Abbrev_State) as States | mvexpand States&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;My third query is meant to provide a list of the cities within that state. Again, the duplicate labels causing conflict. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;sourcetype=XXX | lookup territory.csv State as "Abbrev_State" OUTPUT Rep as Rep | search Rep="XXX" "Abbrev_State"=XX | stats values(Abbrev_City) as City | mvexpand City&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I've been using the GUI only to modify my inputs. I can copy the XML if necessary. Any help would appreciated. &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 06:53:09 GMT</pubDate>
    <dc:creator>ablumenthal_spl</dc:creator>
    <dc:date>2020-09-29T06:53:09Z</dc:date>
    <item>
      <title>Duplicate events causing conflict - how to eliminate</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duplicate-events-causing-conflict-how-to-eliminate/m-p/155224#M43669</link>
      <description>&lt;P&gt;I'm trying to create a series of inputs that require a change on selection. &lt;/P&gt;

&lt;P&gt;The first one drops down a list of users via a lookup table. It also pulls a list of states associated to their names. The query looks like this: &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;sourcetype=XXX | lookup territory.csv State as "Abbrev_State" OUTPUT Rep as Rep | top Rep | dedup Rep&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;*** my sourcetype has the information on states and cities. The original sourcetype is a CSV. I uploaded the lookup. dedup has not solved this problem for me. &lt;/P&gt;

&lt;P&gt;The second query is meant to drop down the states associated with their names. I'm also getting the same error on duplicate labels. &lt;BR /&gt;
Here's my Query: &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;sourcetype=XXX | lookup territory.csv State as "Abbrev_State" OUTPUT Rep as Rep | search Rep="XXXX" | stats values(Abbrev_State) as States | mvexpand States&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;My third query is meant to provide a list of the cities within that state. Again, the duplicate labels causing conflict. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;sourcetype=XXX | lookup territory.csv State as "Abbrev_State" OUTPUT Rep as Rep | search Rep="XXX" "Abbrev_State"=XX | stats values(Abbrev_City) as City | mvexpand City&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I've been using the GUI only to modify my inputs. I can copy the XML if necessary. Any help would appreciated. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:53:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duplicate-events-causing-conflict-how-to-eliminate/m-p/155224#M43669</guid>
      <dc:creator>ablumenthal_spl</dc:creator>
      <dc:date>2020-09-29T06:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate events causing conflict - how to eliminate</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duplicate-events-causing-conflict-how-to-eliminate/m-p/155225#M43670</link>
      <description>&lt;P&gt;The XML would be good to have for providing proper solution. Meanwhile, try this- &lt;BR /&gt;
 Replace your first query with this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=XXX | lookup territory.csv State as "Abbrev_State" OUTPUT Rep as Rep | stats count by Rep
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Replace your 2nd query with this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=XXX | lookup territory.csv State as "Abbrev_State" OUTPUT Rep as Rep | search Rep="XXXX" | stats  count by Abbrev_State | rename Abbrev_State as States 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Replace your 3rd query with this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=XXX | lookup territory.csv State as "Abbrev_State" OUTPUT Rep as Rep | search Rep="XXX" "Abbrev_State"=XX | stats count by Abbrev_City | rename Abbrev_City as City 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Aug 2015 15:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duplicate-events-causing-conflict-how-to-eliminate/m-p/155225#M43670</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-05T15:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate events causing conflict - how to eliminate</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duplicate-events-causing-conflict-how-to-eliminate/m-p/155226#M43671</link>
      <description>&lt;P&gt;You say you're "getting the same error", but I don't see where you say what that error is.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2015 15:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duplicate-events-causing-conflict-how-to-eliminate/m-p/155226#M43671</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-08-05T15:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate events causing conflict - how to eliminate</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duplicate-events-causing-conflict-how-to-eliminate/m-p/155227#M43672</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;this should be caused by a label that is more than one time in the set of labels available to your dropwown.&lt;/P&gt;

&lt;P&gt;So you can check the options of the dropdown. Which field of your dynamic search is marked as field for the labels, and which one is marked for the values. Maybe you interchanged them?&lt;/P&gt;

&lt;P&gt;Also, i run in in this problem often, because for a first run on the dashboard i just add some static labels and values to the inputs for test purpose. Later i implement the dynamic search, but sometimes the labels of your static options are equal to results of your dynamic search. Did you check that you have none or at least unique static labels in your dropdowns?&lt;/P&gt;

&lt;P&gt;@richgalloway: the error is "duplicate labels causing conflict"&lt;/P&gt;

&lt;P&gt;Greetings&lt;/P&gt;

&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2015 12:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duplicate-events-causing-conflict-how-to-eliminate/m-p/155227#M43672</guid>
      <dc:creator>tom_frotscher</dc:creator>
      <dc:date>2015-08-06T12:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate events causing conflict - how to eliminate</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duplicate-events-causing-conflict-how-to-eliminate/m-p/155228#M43673</link>
      <description>&lt;P&gt;Apologies! "Duplicate Labels causing conflict" was the error. I solved the problem per Tom's suggestion! &lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2015 13:34:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duplicate-events-causing-conflict-how-to-eliminate/m-p/155228#M43673</guid>
      <dc:creator>ablumenthal_spl</dc:creator>
      <dc:date>2015-08-06T13:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate events causing conflict - how to eliminate</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duplicate-events-causing-conflict-how-to-eliminate/m-p/155229#M43674</link>
      <description>&lt;P&gt;Exactly my problem. Thank's Tom. I appreciate your help. &lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2015 13:34:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duplicate-events-causing-conflict-how-to-eliminate/m-p/155229#M43674</guid>
      <dc:creator>ablumenthal_spl</dc:creator>
      <dc:date>2015-08-06T13:34:45Z</dc:date>
    </item>
  </channel>
</rss>

