<?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: Is there a way to flip the values of fields? Ex: sourceIP to destinationIP by simply using a command in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Is-there-a-way-to-flip-the-values-of-fields-Ex-sourceIP-to/m-p/428041#M6274</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=firewall
| stats dc(srcIP) AS count values(srcIP) AS destIPs BY destIP
| where count&amp;gt;100
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 28 Apr 2019 02:37:17 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-04-28T02:37:17Z</dc:date>
    <item>
      <title>Is there a way to flip the values of fields? Ex: sourceIP to destinationIP by simply using a command</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Is-there-a-way-to-flip-the-values-of-fields-Ex-sourceIP-to/m-p/428039#M6272</link>
      <description>&lt;P&gt;Here is what I'm trying to do. Say I have 10 servers being targeted by several public IP addresses, is there anyway to flip the values where instead of having to copy all the 10 internal IP address as source and finding all the public IP addresses?&lt;/P&gt;

&lt;P&gt;Example query:&lt;/P&gt;

&lt;P&gt;index=myfirewall  | table srcIP,destIP,action&lt;/P&gt;

&lt;P&gt;Output scenario: &lt;BR /&gt;
100 attacking IPs -&amp;gt; 10 servers&lt;/P&gt;

&lt;P&gt;Desired outcomes:&lt;/P&gt;

&lt;H1&gt;1&lt;/H1&gt;

&lt;P&gt;100 src attacking IPs -&amp;gt; 10 destination servers | "flip?"&lt;/P&gt;

&lt;P&gt;10 src servers IPs -&amp;gt; 100 destination IP addresses&lt;/P&gt;

&lt;H1&gt;2&lt;/H1&gt;

&lt;P&gt;Any internal source IP -&amp;gt; 100 destination attacking IP addresses (without having to copy the entire list)&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 20:24:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Is-there-a-way-to-flip-the-values-of-fields-Ex-sourceIP-to/m-p/428039#M6272</guid>
      <dc:creator>jrodriguez233</dc:creator>
      <dc:date>2019-04-26T20:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to flip the values of fields? Ex: sourceIP to destinationIP by simply using a command</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Is-there-a-way-to-flip-the-values-of-fields-Ex-sourceIP-to/m-p/428040#M6273</link>
      <description>&lt;P&gt;Maybe soemthing like this? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval  temp_src = src_ip 
| eval  temp_dest = dest_ip 
| eval src_ip = temp_test
| eval dest_ip = temp_src
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Apr 2019 03:54:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Is-there-a-way-to-flip-the-values-of-fields-Ex-sourceIP-to/m-p/428040#M6273</guid>
      <dc:creator>daniel333</dc:creator>
      <dc:date>2019-04-27T03:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to flip the values of fields? Ex: sourceIP to destinationIP by simply using a command</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Is-there-a-way-to-flip-the-values-of-fields-Ex-sourceIP-to/m-p/428041#M6274</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=firewall
| stats dc(srcIP) AS count values(srcIP) AS destIPs BY destIP
| where count&amp;gt;100
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 28 Apr 2019 02:37:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Is-there-a-way-to-flip-the-values-of-fields-Ex-sourceIP-to/m-p/428041#M6274</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-28T02:37:17Z</dc:date>
    </item>
  </channel>
</rss>

