<?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: Show only matching IP's from two different fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Show-only-matching-IP-s-from-two-different-fields/m-p/123585#M33378</link>
    <description>&lt;P&gt;not sure if the will make sense but, i built it out a little differently and it works, i named the fileds in the CSV's the same that i need to compare counts-&lt;/P&gt;

&lt;P&gt;[|inputlookup ipsav.csv] index=summaryindex host=host1  | timechart count | Rename count As "total count of host1" | appendcols[search [|inputlookup ipsav.csv] index=summaryindex host=host1 OR host=host2 |stats count by "FIELD NAMED THE SAME IN BOTH HOSTS"| Where count = 1 | stats count | Rename count as " show count if the count is only one"]&lt;/P&gt;

&lt;P&gt;thanks for the help guys.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Feb 2015 20:38:28 GMT</pubDate>
    <dc:creator>sbattista09</dc:creator>
    <dc:date>2015-02-19T20:38:28Z</dc:date>
    <item>
      <title>Show only matching IP's from two different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-only-matching-IP-s-from-two-different-fields/m-p/123582#M33375</link>
      <description>&lt;P&gt;base search would be: index=index1 host=scan1 OR host=scan2&lt;/P&gt;

&lt;P&gt;In the scans there are fields that are named differently but have Ip address in them, I would like Splunk to take the two fields and show me only the IP's that appear in both of them and get a total count. The names of the fields are IPAddressText and IPHost. I hope there is a simple  eval statement someone could help me with. &lt;/P&gt;

&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jan 2015 00:28:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-only-matching-IP-s-from-two-different-fields/m-p/123582#M33375</guid>
      <dc:creator>sbattista09</dc:creator>
      <dc:date>2015-01-31T00:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Show only matching IP's from two different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-only-matching-IP-s-from-two-different-fields/m-p/123583#M33376</link>
      <description>&lt;P&gt;See if this works for you: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1 host=scan1 OR host=scan2 PAddressText=* IPHost=* | where IPAddressText=IPHost
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 31 Jan 2015 02:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-only-matching-IP-s-from-two-different-fields/m-p/123583#M33376</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2015-01-31T02:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Show only matching IP's from two different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-only-matching-IP-s-from-two-different-fields/m-p/123584#M33377</link>
      <description>&lt;P&gt;sorry, it did not work. its seems to be having trouble searching between the two fields. I say this because I ran just the index=index1 host=scan1 OR host=scan2 PAddressText=* IPHost=* part and nothing came up until i put a OR between the PAddressText=*  IPHost=*. &lt;/P&gt;</description>
      <pubDate>Sat, 31 Jan 2015 02:47:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-only-matching-IP-s-from-two-different-fields/m-p/123584#M33377</guid>
      <dc:creator>sbattista09</dc:creator>
      <dc:date>2015-01-31T02:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Show only matching IP's from two different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-only-matching-IP-s-from-two-different-fields/m-p/123585#M33378</link>
      <description>&lt;P&gt;not sure if the will make sense but, i built it out a little differently and it works, i named the fileds in the CSV's the same that i need to compare counts-&lt;/P&gt;

&lt;P&gt;[|inputlookup ipsav.csv] index=summaryindex host=host1  | timechart count | Rename count As "total count of host1" | appendcols[search [|inputlookup ipsav.csv] index=summaryindex host=host1 OR host=host2 |stats count by "FIELD NAMED THE SAME IN BOTH HOSTS"| Where count = 1 | stats count | Rename count as " show count if the count is only one"]&lt;/P&gt;

&lt;P&gt;thanks for the help guys.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2015 20:38:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-only-matching-IP-s-from-two-different-fields/m-p/123585#M33378</guid>
      <dc:creator>sbattista09</dc:creator>
      <dc:date>2015-02-19T20:38:28Z</dc:date>
    </item>
  </channel>
</rss>

