<?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 use coalesce without hitting search limit in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451532#M127865</link>
    <description>&lt;P&gt;My data is from the same source but I would like to count the number of times a host appears on the event based on two fields criteria.  How can I do that without hitting search limit?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index source=my_source
(source_host=remote* OR dest_host=remote*)
| eval name=coalesce(source_host,dest_host)
| stats count by name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2019 05:21:53 GMT</pubDate>
    <dc:creator>alc2019</dc:creator>
    <dc:date>2019-05-09T05:21:53Z</dc:date>
    <item>
      <title>How to use coalesce without hitting search limit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451532#M127865</link>
      <description>&lt;P&gt;My data is from the same source but I would like to count the number of times a host appears on the event based on two fields criteria.  How can I do that without hitting search limit?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index source=my_source
(source_host=remote* OR dest_host=remote*)
| eval name=coalesce(source_host,dest_host)
| stats count by name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 05:21:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451532#M127865</guid>
      <dc:creator>alc2019</dc:creator>
      <dc:date>2019-05-09T05:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use coalesce without hitting search limit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451533#M127866</link>
      <description>&lt;P&gt;The above search seems to be good. it should be constrained by limits.conf only&lt;BR /&gt;
What type of limit you hitting?&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 05:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451533#M127866</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-09T05:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use coalesce without hitting search limit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451534#M127867</link>
      <description>&lt;P&gt;I was trying to apply the answer from this good post, but I cannot make it work.&lt;/P&gt;

&lt;P&gt;The coalesce results only one side.  I want to count each time a host appears on either source_host or destination_host. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/524250/how-to-search-for-matches-in-two-different-searche.html" target="_blank"&gt;https://answers.splunk.com/answers/524250/how-to-search-for-matches-in-two-different-searche.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/524250/how-to-search-for-matches-in-two-different-searche.html" target="_blank"&gt;link text&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:28:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451534#M127867</guid>
      <dc:creator>alc2019</dc:creator>
      <dc:date>2020-09-30T00:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use coalesce without hitting search limit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451535#M127868</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index source=my_source (source_host=remote* OR dest_host=remote*)
| multireport
[ stats count by source_host]
[ stats count by dest_host ]
| eval name=coalesce(source_host,dest_host)
| fields - *_host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 May 2019 18:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451535#M127868</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-10T18:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use coalesce without hitting search limit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451536#M127869</link>
      <description>&lt;P&gt;minor amendments &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=my_index source=my_source (source_host=remote* OR dest_host=remote*)
 | multireport
 [ stats count by source_host]
 [ stats count by dest_host ]
 | eval name=coalesce(source_host,dest_host)
 | fields - *_host
 | stats sum(count) as count by name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 May 2019 19:00:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451536#M127869</guid>
      <dc:creator>sumanssah</dc:creator>
      <dc:date>2019-05-10T19:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use coalesce without hitting search limit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451537#M127870</link>
      <description>&lt;P&gt;I agree.  Missed it by &lt;CODE&gt;&amp;gt;that&amp;lt;&lt;/CODE&gt; much.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 19:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451537#M127870</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-10T19:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use coalesce without hitting search limit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451538#M127871</link>
      <description>&lt;P&gt;Except you don't need the &lt;CODE&gt;fields - *_host&lt;/CODE&gt; in that case.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 19:45:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-coalesce-without-hitting-search-limit/m-p/451538#M127871</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-10T19:45:10Z</dc:date>
    </item>
  </channel>
</rss>

