<?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 How to plot a graph with field having duplicate values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-graph-with-field-having-duplicate-values/m-p/614092#M213405</link>
    <description>&lt;P&gt;Hi, I have a scenario where I receive multiple requests which contain same field value basically OrderNumber. So the backend is receiving duplicate orders from the front end.&lt;/P&gt;&lt;P&gt;It only happens every now and then and I'd like to plot a graph which can show me when exactly it happens. I think just the count of duplicates vs _time would be enough.&lt;/P&gt;&lt;P&gt;I've tried using a query but it's giving me a distorted graph. Is there a better way to achieve this?&lt;/P&gt;&lt;P&gt;Query I have -&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myapp OrderService "HttpMethod=POST" 
| rex field=_raw "orderNumber\"\:\s\"(?&amp;lt;orderNumber&amp;gt;[^\"]+)" 
| bin span=15m _time 
| stats count by _time orderNumber 
| where count &amp;gt; 1
| table _time count&lt;/LI-CODE&gt;&lt;P&gt;Let me know if anyone has any suggestions to do this in a better way.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 10:58:58 GMT</pubDate>
    <dc:creator>shashank_24</dc:creator>
    <dc:date>2022-09-22T10:58:58Z</dc:date>
    <item>
      <title>How to plot a graph with field having duplicate values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-graph-with-field-having-duplicate-values/m-p/614092#M213405</link>
      <description>&lt;P&gt;Hi, I have a scenario where I receive multiple requests which contain same field value basically OrderNumber. So the backend is receiving duplicate orders from the front end.&lt;/P&gt;&lt;P&gt;It only happens every now and then and I'd like to plot a graph which can show me when exactly it happens. I think just the count of duplicates vs _time would be enough.&lt;/P&gt;&lt;P&gt;I've tried using a query but it's giving me a distorted graph. Is there a better way to achieve this?&lt;/P&gt;&lt;P&gt;Query I have -&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myapp OrderService "HttpMethod=POST" 
| rex field=_raw "orderNumber\"\:\s\"(?&amp;lt;orderNumber&amp;gt;[^\"]+)" 
| bin span=15m _time 
| stats count by _time orderNumber 
| where count &amp;gt; 1
| table _time count&lt;/LI-CODE&gt;&lt;P&gt;Let me know if anyone has any suggestions to do this in a better way.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 10:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-graph-with-field-having-duplicate-values/m-p/614092#M213405</guid>
      <dc:creator>shashank_24</dc:creator>
      <dc:date>2022-09-22T10:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot a graph with field having duplicate values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-graph-with-field-having-duplicate-values/m-p/614114#M213419</link>
      <description>&lt;P&gt;What do you mean by "a distorted graph"?&amp;nbsp; Try removing the the table command as it is dropping a field that may be needed for the graph..&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 12:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-a-graph-with-field-having-duplicate-values/m-p/614114#M213419</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-22T12:26:33Z</dc:date>
    </item>
  </channel>
</rss>

