<?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: xpath is returning the duplicate values. How do I limit the output to single values? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/xpath-is-returning-the-duplicate-values-How-do-I-limit-the/m-p/261927#M50289</link>
    <description>&lt;P&gt;Can you provide a single sample event? Anonymize as needed. It's going to be difficult to help without seeing what your event structure looks like.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2016 03:52:56 GMT</pubDate>
    <dc:creator>s2_splunk</dc:creator>
    <dc:date>2016-02-02T03:52:56Z</dc:date>
    <item>
      <title>xpath is returning the duplicate values. How do I limit the output to single values?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/xpath-is-returning-the-duplicate-values-How-do-I-limit-the/m-p/261926#M50288</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;Because of existing logs type, XPATH is returning a same value thrice. Is there any way to limit the number of values?&lt;BR /&gt;
I am using max_match but seems like it is not working. Screenshot given below.&lt;/P&gt;

&lt;P&gt;Regards&lt;BR /&gt;
Rishi&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1026i82A4F75F072CE0C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 02:38:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/xpath-is-returning-the-duplicate-values-How-do-I-limit-the/m-p/261926#M50288</guid>
      <dc:creator>rishiaggarwal</dc:creator>
      <dc:date>2016-02-02T02:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: xpath is returning the duplicate values. How do I limit the output to single values?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/xpath-is-returning-the-duplicate-values-How-do-I-limit-the/m-p/261927#M50289</link>
      <description>&lt;P&gt;Can you provide a single sample event? Anonymize as needed. It's going to be difficult to help without seeing what your event structure looks like.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 03:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/xpath-is-returning-the-duplicate-values-How-do-I-limit-the/m-p/261927#M50289</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2016-02-02T03:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: xpath is returning the duplicate values. How do I limit the output to single values?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/xpath-is-returning-the-duplicate-values-How-do-I-limit-the/m-p/261928#M50290</link>
      <description>&lt;P&gt;Hello  rishiaggarwal,&lt;BR /&gt;
                        I tried to solve your problem..........I have taken sample data returning the same results like you&lt;/P&gt;

&lt;P&gt;Data in my sample data &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index="demo1"| table Username,ID,Date&lt;/STRONG&gt;&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/91174-demo3.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Now  i have written a query ..........for u r expected results  &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index="demo1"|streamstats count by _raw  | search count&amp;lt;2 | eval eid=_cd |transaction ID,Date maxspan=5s| table Username,ID,Date&lt;/STRONG&gt;&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/91175-demo4.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I hope u can use this query on your data ..........let me know if it works for u ...........&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:37:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/xpath-is-returning-the-duplicate-values-How-do-I-limit-the/m-p/261928#M50290</guid>
      <dc:creator>rakeshh123</dc:creator>
      <dc:date>2020-09-29T08:37:50Z</dc:date>
    </item>
  </channel>
</rss>

