<?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 eval IP function - help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/eval-IP-function-help/m-p/364721#M169946</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a search woring which returns single IP addresses as source for certain events. As part of this I want to pass the source address into the eval function.  I have eval working with "eval ip = "10.0.0.2" I am then passing this into a lookup table and everything is great but I want to automate this so that the results from source are automatically passed through eval IP and then matched on my lookup so that I can return additional information form the lookup.&lt;/P&gt;

&lt;P&gt;However I can't get the eval function to use the results from the source field returned as per the search. I have tried the following:&lt;/P&gt;

&lt;P&gt;eval IP = source&lt;BR /&gt;
eval source as IP&lt;/P&gt;

&lt;P&gt;I must be missing something can someone put me out my misery please?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2018 08:47:39 GMT</pubDate>
    <dc:creator>griggsy</dc:creator>
    <dc:date>2018-04-26T08:47:39Z</dc:date>
    <item>
      <title>eval IP function - help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-IP-function-help/m-p/364721#M169946</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a search woring which returns single IP addresses as source for certain events. As part of this I want to pass the source address into the eval function.  I have eval working with "eval ip = "10.0.0.2" I am then passing this into a lookup table and everything is great but I want to automate this so that the results from source are automatically passed through eval IP and then matched on my lookup so that I can return additional information form the lookup.&lt;/P&gt;

&lt;P&gt;However I can't get the eval function to use the results from the source field returned as per the search. I have tried the following:&lt;/P&gt;

&lt;P&gt;eval IP = source&lt;BR /&gt;
eval source as IP&lt;/P&gt;

&lt;P&gt;I must be missing something can someone put me out my misery please?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 08:47:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-IP-function-help/m-p/364721#M169946</guid>
      <dc:creator>griggsy</dc:creator>
      <dc:date>2018-04-26T08:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: eval IP function - help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-IP-function-help/m-p/364722#M169947</link>
      <description>&lt;P&gt;Whenever you use &lt;CODE&gt;eval&lt;/CODE&gt; and you want to pass a field into it, you must have single tic's around the field value. &lt;/P&gt;

&lt;P&gt;So if you wanted IP to be source, it would look like this &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eval IP='source'&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 12:20:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-IP-function-help/m-p/364722#M169947</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-04-26T12:20:05Z</dc:date>
    </item>
  </channel>
</rss>

