<?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 join search and use join ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-and-use-join/m-p/571376#M199108</link>
    <description>&lt;P&gt;&lt;SPAN&gt;First Event&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;INFO | 2021-10-18 05:17 AM | BUSINESS RULE | Payload for ID#: 40658606156551247672591634534230307 with status Approved is published&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Second Event&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;msg&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;&amp;nbsp;INFO | 2021-10-14 10:38 PM |&amp;nbsp; Message consumed: {"InputAmountToCredit":"22.67","CurrencyCode":"AUD","Buid":"1401","OrderNumber":"877118406","ID":"58916"}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;I want to have sum of InputAmountToCredit based on status . status can vary to different statuses and ID is common field for both the events what is best way to sum the amount with the same status for specified timeframe&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Thanks for all the support.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 17:05:12 GMT</pubDate>
    <dc:creator>hrishi_deshpand</dc:creator>
    <dc:date>2021-10-18T17:05:12Z</dc:date>
    <item>
      <title>How to join search and use join ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-and-use-join/m-p/571376#M199108</link>
      <description>&lt;P&gt;&lt;SPAN&gt;First Event&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;INFO | 2021-10-18 05:17 AM | BUSINESS RULE | Payload for ID#: 40658606156551247672591634534230307 with status Approved is published&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Second Event&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;msg&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;&amp;nbsp;INFO | 2021-10-14 10:38 PM |&amp;nbsp; Message consumed: {"InputAmountToCredit":"22.67","CurrencyCode":"AUD","Buid":"1401","OrderNumber":"877118406","ID":"58916"}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;I want to have sum of InputAmountToCredit based on status . status can vary to different statuses and ID is common field for both the events what is best way to sum the amount with the same status for specified timeframe&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Thanks for all the support.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 17:05:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-and-use-join/m-p/571376#M199108</guid>
      <dc:creator>hrishi_deshpand</dc:creator>
      <dc:date>2021-10-18T17:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to join search and use join ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-and-use-join/m-p/571390#M199111</link>
      <description>&lt;P&gt;Assuming the fields are extracted already, you can use the &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command to group results by a shared field.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | stats values(*) as * by ID&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 18 Oct 2021 18:27:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-and-use-join/m-p/571390#M199111</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-18T18:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to join search and use join ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-and-use-join/m-p/572007#M199333</link>
      <description>&lt;P&gt;index = pcf_logs cf_org_name = creorg OR cf_org_name = SvcITDnFAppsOrg cf_app_name=VerifyReviewConsumerService host="*" | eval _raw = msg | rex "InputAmountToCredit\"\:\"(?&amp;lt;PayloadAmount&amp;gt;[^\"]+)" | rex "Request\#\:\s*(?&amp;lt;ID1&amp;gt;\d+) with (?&amp;lt;Status&amp;gt;\w+.\w+)" | rex "CRERequestId\"\:\"(?&amp;lt;ID2&amp;gt;[^\"]+)" | eval ID=coalesce(ID1,ID2)|stats latest(Status) as Status values(PayloadAmount) as Amount by ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this to generate report I want but as per my understanding I should create a summary index by using&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(*) as * by ID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;and then by using stats result I should be able to do chart or another stats or whatever. Just because&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(*) as * by ID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;this gives me all the data related to ID and I can play with it the way I want after creating the index. Is my understanding is correct?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 12:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-and-use-join/m-p/572007#M199333</guid>
      <dc:creator>hrishi_deshpand</dc:creator>
      <dc:date>2021-10-22T12:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to join search and use join ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-and-use-join/m-p/572062#M199355</link>
      <description>&lt;P&gt;Yes, your understanding is correct.&amp;nbsp; Be aware, however, that the &lt;FONT face="courier new,courier"&gt;values()&lt;/FONT&gt; function may produce a multi-value field.&amp;nbsp; Some commands you might use after &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; may not handle multi-value commands well (or at all) so additional massaging of the data may be necessary.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 17:50:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-and-use-join/m-p/572062#M199355</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-22T17:50:03Z</dc:date>
    </item>
  </channel>
</rss>

