<?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: one report with two metrics in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/one-report-with-two-metrics/m-p/552194#M156704</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225135"&gt;@vinod0313&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for the late reply.&lt;/P&gt;&lt;P&gt;I think you set the count field with the same name, try to modify the count name for each search.&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="cx_aws" host="aw-lx0244.deltadev.ent" source ="pf-enrollee-family-roster-service" AND ("/persons/" OR "/contracts/") AND HttpStatusCode|bucket _time span=1h | stats count as search1_count by _time |append [search index="cx_aws" host="aw-lx0244.deltadev.ent" source="pf-enrollee-family-roster-service" AND ("/persons/" OR "/contracts/") AND HttpStatusCode | eval TimeTaken3 = trim(replace(TimeTaken, ",","")) | eval REQUESTED_URL2 = trim(replace(REQUESTED_URL, "/contracts/",""))| eval REQUESTED_URL3 = trim(replace(REQUESTED_URL2, "/enrollees","")) | sort -num(TimeTaken3) | WHERE TimeTaken3&amp;gt;10000|bucket _time span=1h | stats count as search2_count by _time]&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 19 May 2021 11:55:30 GMT</pubDate>
    <dc:creator>aasabatini</dc:creator>
    <dc:date>2021-05-19T11:55:30Z</dc:date>
    <item>
      <title>one report with two metrics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/one-report-with-two-metrics/m-p/551978#M156641</link>
      <description>&lt;P&gt;HI I have two queries ,and i need to display the results from the both the queries in one line graph report&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 07:34:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/one-report-with-two-metrics/m-p/551978#M156641</guid>
      <dc:creator>vinod0313</dc:creator>
      <dc:date>2021-05-18T07:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: one report with two metrics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/one-report-with-two-metrics/m-p/551979#M156642</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225135"&gt;@vinod0313&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can try to use a subsearch but be careful because subsearches works fine with a small set of data&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.0/SearchTutorial/Useasubsearch" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.0/SearchTutorial/Useasubsearch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;anyway if you want share your searches or explain your case the community can help you better&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alessandro&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 07:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/one-report-with-two-metrics/m-p/551979#M156642</guid>
      <dc:creator>aasabatini</dc:creator>
      <dc:date>2021-05-18T07:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: one report with two metrics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/one-report-with-two-metrics/m-p/552012#M156648</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222210"&gt;@aasabatini&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am joining two queries in order to show both result in one graph,please refer below query&lt;BR /&gt;&lt;BR /&gt;index="cx_aws" host="aw-lx0244.deltadev.ent" source ="pf-enrollee-family-roster-service" AND ("/persons/" OR "/contracts/") AND HttpStatusCode|bucket _time span=1h | stats count by _time |append [search index="cx_aws" host="aw-lx0244.deltadev.ent" source="pf-enrollee-family-roster-service" AND ("/persons/" OR "/contracts/") AND HttpStatusCode | eval TimeTaken3 = trim(replace(TimeTaken, ",","")) | eval REQUESTED_URL2 = trim(replace(REQUESTED_URL, "/contracts/",""))| eval REQUESTED_URL3 = trim(replace(REQUESTED_URL2, "/enrollees","")) | sort -num(TimeTaken3) | WHERE TimeTaken3&amp;gt;10000|bucket _time span=1h | stats count by _time]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But i am getting only one graph,in this graph only both query results are showing,refer below&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinod0313_0-1621332627230.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14198i421F57E230FC95B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinod0313_0-1621332627230.png" alt="vinod0313_0-1621332627230.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;but i need two lines (one for each query) in the graph&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 10:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/one-report-with-two-metrics/m-p/552012#M156648</guid>
      <dc:creator>vinod0313</dc:creator>
      <dc:date>2021-05-18T10:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: one report with two metrics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/one-report-with-two-metrics/m-p/552194#M156704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225135"&gt;@vinod0313&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for the late reply.&lt;/P&gt;&lt;P&gt;I think you set the count field with the same name, try to modify the count name for each search.&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="cx_aws" host="aw-lx0244.deltadev.ent" source ="pf-enrollee-family-roster-service" AND ("/persons/" OR "/contracts/") AND HttpStatusCode|bucket _time span=1h | stats count as search1_count by _time |append [search index="cx_aws" host="aw-lx0244.deltadev.ent" source="pf-enrollee-family-roster-service" AND ("/persons/" OR "/contracts/") AND HttpStatusCode | eval TimeTaken3 = trim(replace(TimeTaken, ",","")) | eval REQUESTED_URL2 = trim(replace(REQUESTED_URL, "/contracts/",""))| eval REQUESTED_URL3 = trim(replace(REQUESTED_URL2, "/enrollees","")) | sort -num(TimeTaken3) | WHERE TimeTaken3&amp;gt;10000|bucket _time span=1h | stats count as search2_count by _time]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 May 2021 11:55:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/one-report-with-two-metrics/m-p/552194#M156704</guid>
      <dc:creator>aasabatini</dc:creator>
      <dc:date>2021-05-19T11:55:30Z</dc:date>
    </item>
  </channel>
</rss>

