<?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 Reduce the EVAL command SPL in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-EVAL-command-SPL/m-p/577288#M201181</link>
    <description>&lt;P&gt;could someone who is SPL expert help me reduce this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|eval dest=replace(dest, "dstdomain|src|any-of|dst|# ", ""), dest=replace(mvjoin(dest, " "), "/32", "|"), dest=split(dest, "|"), dest=split(dest, " ") &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Dec 2021 22:11:35 GMT</pubDate>
    <dc:creator>youngsuh</dc:creator>
    <dc:date>2021-12-03T22:11:35Z</dc:date>
    <item>
      <title>Reduce the EVAL command SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-EVAL-command-SPL/m-p/577288#M201181</link>
      <description>&lt;P&gt;could someone who is SPL expert help me reduce this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|eval dest=replace(dest, "dstdomain|src|any-of|dst|# ", ""), dest=replace(mvjoin(dest, " "), "/32", "|"), dest=split(dest, "|"), dest=split(dest, " ") &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 22:11:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reduce-the-EVAL-command-SPL/m-p/577288#M201181</guid>
      <dc:creator>youngsuh</dc:creator>
      <dc:date>2021-12-03T22:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the EVAL command SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-EVAL-command-SPL/m-p/577289#M201182</link>
      <description>&lt;P&gt;Can you share some sample events that you are trying to&amp;nbsp; process?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 22:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reduce-the-EVAL-command-SPL/m-p/577289#M201182</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-03T22:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the EVAL command SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-EVAL-command-SPL/m-p/577290#M201183</link>
      <description>&lt;P&gt;What is the problem you are trying to solve?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 22:17:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reduce-the-EVAL-command-SPL/m-p/577290#M201183</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-12-03T22:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the EVAL command SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-EVAL-command-SPL/m-p/577293#M201186</link>
      <description>&lt;P&gt;I am trying to parse the squid.conf file into a table.&amp;nbsp; I can't actually post the conf file due to security reason.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype="conf_no_timestamp"
| rex "( P&amp;lt;rule_name&amp;gt;^http_access|acl|cache|always_direct|persistent_request_timeout|request_timeout|follow_x_forwarded_for)\s(?P&amp;lt;action&amp;gt;[\w]+)\s(?&amp;lt;server_group_name&amp;gt;.*)$"
| eval action=split(action," ")
| eval server_group_name=split(server_group_name, " ")
| where action like "allow"
| table rule_name, server_group_name, action
| append
    [ search  sourcetype="conf_no_timestamp"
    | rex "(?P&amp;lt;rule_name&amp;gt;^http_access|acl|cache|always_direct|persistent_request_timeout|request_timeout|follow_x_forwarded_for)\s(?P&amp;lt;server_group_name&amp;gt;[\w]+)\s(?&amp;lt;dest&amp;gt;.*)$"
    | eval server_group_name=split(server_group_name," ")
    | eval dest=replace(dest, "dstdomain|src|any-of|dst|# ", ""), dest=replace(mvjoin(dest, " "), "/32", "|"), dest=split(dest, "|"), dest=split(dest, " ")
    | where rule_name like "acl"
    | table rule_name, dest, server_group_name]
| fillnull value="allow" action
| stats values(rule_name) as rule_name values(dest) as dest values(action) as action count by server_group_name&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 Dec 2021 23:09:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reduce-the-EVAL-command-SPL/m-p/577293#M201186</guid>
      <dc:creator>youngsuh</dc:creator>
      <dc:date>2021-12-03T23:09:12Z</dc:date>
    </item>
  </channel>
</rss>

