<?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 Join two search in one table? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-Join-two-search-in-one-table/m-p/165827#M33642</link>
    <description>&lt;P&gt;this really grateful for the help of code that sent&lt;/P&gt;</description>
    <pubDate>Thu, 12 Mar 2015 18:34:13 GMT</pubDate>
    <dc:creator>nidet</dc:creator>
    <dc:date>2015-03-12T18:34:13Z</dc:date>
    <item>
      <title>how Join two search in one table?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-Join-two-search-in-one-table/m-p/165823#M33638</link>
      <description>&lt;P&gt;I need to make a search that can list the different IP (On occasions the ip will not be in the previous month but in the current month.) and vulnerabilities of the current month and last month in two columns.&lt;/P&gt;

&lt;P&gt;example, this correct, manual&lt;BR /&gt;
Ip        -          Last month      -         Current Month&lt;BR /&gt;
192.168.32.3            -  3       -          1&lt;BR /&gt;
192.168.32.8            - 10        -        5&lt;BR /&gt;
192.168.32.162       -  5         -         0&lt;BR /&gt;
192.168.32.165       - 4          -         1&lt;/P&gt;

&lt;P&gt;but the source is inconsistent&lt;BR /&gt;
192.168.32.3          - 0           -        1 &lt;BR /&gt;
192.168.32.8       - 1             -        4&lt;BR /&gt;
192.168.32.162       -  1      -         0&lt;BR /&gt;
&lt;STRONG&gt;192.168.32.163&lt;/STRONG&gt;         -4         -       1&lt;BR /&gt;
&lt;STRONG&gt;192.168.32.165&lt;/STRONG&gt;       -3          -       5&lt;BR /&gt;
when a new ip data is changed, is incorrect&lt;/P&gt;

&lt;P&gt;sourcetype=" " org_id="" earliest=-1mon@mon latest=@mon NOT vuln_risk=0  | chart count over ip by vuln_risk | addtotals fieldname="Current Month" |appendcols [search sourcetype=" " org_id="" earliest=-1mon@mon-1@mon latest=@mon-1@mon NOT vuln_risk=0 | chart count over ip by vuln_risk |  addtotals fieldname="Previous Month"]|fields - 1,4,8 | rename ip as "Vulnerable Hosts" | sort - "Current Month"&lt;/P&gt;

&lt;P&gt;Anyone have a better idea???? Please &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:05:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-Join-two-search-in-one-table/m-p/165823#M33638</guid>
      <dc:creator>nidet</dc:creator>
      <dc:date>2020-09-28T19:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: how Join two search in one table?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-Join-two-search-in-one-table/m-p/165824#M33639</link>
      <description>&lt;P&gt;Have you thought about using lookup tables?  That way you can populate it with a search and hold a longer history without having to keep as much raw data.  It would make the comparision easy.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2015 20:26:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-Join-two-search-in-one-table/m-p/165824#M33639</guid>
      <dc:creator>ltrand</dc:creator>
      <dc:date>2015-03-06T20:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: how Join two search in one table?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-Join-two-search-in-one-table/m-p/165825#M33640</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=YourSourcetype org_id="" earliest=-2mon@mon latest=@mon vuln_risk!=0 | eval Period=if(_time&amp;lt;relative_time(now(),"-1mon@mon"),"Previous Month","Current Month") | chart count over ip by Period
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Mar 2015 17:19:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-Join-two-search-in-one-table/m-p/165825#M33640</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-03-11T17:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: how Join two search in one table?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-Join-two-search-in-one-table/m-p/165826#M33641</link>
      <description>&lt;P&gt;Now if I can see the ip that were not seen with the other codes to try, now there ips, which doubles its total 4 top and 4 at the end.&lt;BR /&gt;
incorrect&lt;BR /&gt;
192.168.32.3 - 2-2&lt;BR /&gt;
192.168.32.8 - 2-8&lt;BR /&gt;
192.168.32.10 - 2-2&lt;BR /&gt;
192.168.32.11 - 2- 6&lt;/P&gt;

&lt;P&gt;This is the case correct&lt;BR /&gt;
192.168.32.3 - 1-1&lt;BR /&gt;
192.168.32.8 - 1-4&lt;BR /&gt;
192.168.32.10 - 1-1&lt;BR /&gt;
192.168.32.11 - 1- 3&lt;/P&gt;

&lt;P&gt;you know for some reason it is?  I thought was missing | dedup ip, vuln_risk, vuln_name ..  but not funtion&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:13:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-Join-two-search-in-one-table/m-p/165826#M33641</guid>
      <dc:creator>nidet</dc:creator>
      <dc:date>2020-09-28T19:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: how Join two search in one table?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-Join-two-search-in-one-table/m-p/165827#M33642</link>
      <description>&lt;P&gt;this really grateful for the help of code that sent&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2015 18:34:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-Join-two-search-in-one-table/m-p/165827#M33642</guid>
      <dc:creator>nidet</dc:creator>
      <dc:date>2015-03-12T18:34:13Z</dc:date>
    </item>
  </channel>
</rss>

