<?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: How to replace join from the below query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-from-the-below-query/m-p/531828#M150228</link>
    <description>&lt;P&gt;Did you see my reply to your other similar question&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-command-with-any-other-alternative-command/m-p/531807#M150218" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-command-with-any-other-alternative-command/m-p/531807#M150218&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The same principle would apply to this search also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 07:57:05 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2020-12-03T07:57:05Z</dc:date>
    <item>
      <title>How to replace join from the below query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-from-the-below-query/m-p/531827#M150227</link>
      <description>&lt;P&gt;index=105261-cli sourcetype=show_system_resources&lt;BR /&gt;| dedup deviceId&lt;BR /&gt;| eval nexus_percent_used=round(100*memory_used/memory_total)&lt;BR /&gt;| eval nexus_status=if(nexus_percent_used&amp;amp;gt;85, "Not OK", "OK")&lt;BR /&gt;| fields deviceId, nexus_percent_used, nexus_status&lt;BR /&gt;| append&lt;BR /&gt;[ search index=105261-cli sourcetype=show_memory_statistics&lt;BR /&gt;| dedup deviceId&lt;BR /&gt;| eval ios_percent_used=round(100*used/total)&lt;BR /&gt;| eval ios_status=if(ios_percent_used&amp;amp;gt;85, "Not OK", "OK")&lt;BR /&gt;| fields deviceId, ios_percent_used, ios_status ]&lt;BR /&gt;| join deviceId&lt;BR /&gt;[ search index=105261-np sourcetype=device_details&lt;BR /&gt;| fields deviceId, productFamily, swVersion, deviceName ]&lt;BR /&gt;| eval percent_used=if(like(productFamily, "%Nexus%"), nexus_percent_used, ios_percent_used)&lt;BR /&gt;| eval status=if(like(productFamily, "%Nexus%"), nexus_status, ios_status)&lt;BR /&gt;| table deviceName, productFamily, swVersion, percent_used, status&lt;BR /&gt;| sort -percent_used&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 07:50:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-from-the-below-query/m-p/531827#M150227</guid>
      <dc:creator>pstalin_</dc:creator>
      <dc:date>2020-12-03T07:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace join from the below query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-from-the-below-query/m-p/531828#M150228</link>
      <description>&lt;P&gt;Did you see my reply to your other similar question&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-command-with-any-other-alternative-command/m-p/531807#M150218" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-command-with-any-other-alternative-command/m-p/531807#M150218&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The same principle would apply to this search also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 07:57:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-from-the-below-query/m-p/531828#M150228</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-12-03T07:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hi I have replaced like this, but I'm getting different output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-from-the-below-query/m-p/531847#M150233</link>
      <description>&lt;P&gt;(index=148031-cli sourcetype=show_system_resources) OR (index=14031-cli sourcetype=show_memory_statistics) OR (index=148031-np sourcetype=device_details)&lt;BR /&gt;|fields deviceId,memory_used,memory_total,used,total,productFamily, swVersion, deviceName&lt;BR /&gt;| stats latest(*) as * by deviceId&lt;BR /&gt;| eval nexus_percent_used=round(100*memory_used/memory_total)&lt;BR /&gt;| eval nexus_status=if(nexus_percent_used &amp;gt; 85, "Not OK", "OK")&lt;BR /&gt;| eval ios_percent_used=round(100*used/total)&lt;BR /&gt;| eval ios_status=if(ios_percent_used &amp;gt; 85, "Not OK", "OK")&lt;BR /&gt;| eval percent_used=if(like(productFamily, "%Nexus%"), nexus_percent_used, ios_percent_used)&lt;BR /&gt;| eval status=if(like(productFamily, "%Nexus%"), nexus_status, ios_status)&lt;BR /&gt;| table deviceName, productFamily, swVersion, percent_used, status&lt;BR /&gt;| sort -percent_used&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 11:29:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-from-the-below-query/m-p/531847#M150233</guid>
      <dc:creator>pstalin_</dc:creator>
      <dc:date>2020-12-03T11:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hi I have replaced like this, but I'm getting different output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-from-the-below-query/m-p/532095#M150313</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;Hi I have tried the query as u said before but still I'm not getting the exact events count as I got when I used join. Could you please help me in solving this?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(index=148031-cli sourcetype=show_system_resources) OR (index=14031-cli sourcetype=show_memory_statistics) OR (index=148031-np sourcetype=device_details)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|fields deviceId,memory_used,memory_total,used,total,productFamily, swVersion, deviceName&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| stats latest(*) as * by deviceId&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval nexus_percent_used=round(100*memory_used/memory_total)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval nexus_status=if(nexus_percent_used &amp;gt; 85, "Not OK", "OK")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval ios_percent_used=round(100*used/total)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval ios_status=if(ios_percent_used &amp;gt; 85, "Not OK", "OK")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval percent_used=if(like(productFamily, "%Nexus%"), nexus_percent_used, ios_percent_used)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval status=if(like(productFamily, "%Nexus%"), nexus_status, ios_status)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| table deviceName, productFamily, swVersion, percent_used, status&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| sort -percent_used&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 05:08:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-from-the-below-query/m-p/532095#M150313</guid>
      <dc:creator>pstalin_</dc:creator>
      <dc:date>2020-12-05T05:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hi I have replaced like this, but I'm getting different output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-from-the-below-query/m-p/532134#M150321</link>
      <description>&lt;P&gt;You will need to give an example of the data and some outcomes of the searches otherwise it's hard to diagnose the query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 23:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-join-from-the-below-query/m-p/532134#M150321</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-12-06T23:01:39Z</dc:date>
    </item>
  </channel>
</rss>

