<?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 Splunk Ingest Actions - Using Eval Expression Syntax in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Ingest-Actions-Using-Eval-Expression-Syntax/m-p/634087#M108543</link>
    <description>&lt;P&gt;In configuring Rules for Splunk Ingest Actions&amp;nbsp;I have a sourcetype configured for numerous "Filter with Regular expression" stanzas that is properly dropping events ...&lt;BR /&gt;&lt;BR /&gt;However, I'd like to have the same sourcetype drop messages where host=foo-*&amp;nbsp; ...&lt;BR /&gt;&lt;BR /&gt;I might be able to use the eval expression to do that, but I'm not sure how to construct it in a format acceptable to the UI, and functionally appropriate.&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;eval true = if(&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;match&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(host,"^foo-"),true,null())&lt;BR /&gt;&lt;BR /&gt;I'm sure that's wrong, but there really are no examples that I've been able to find other than "true()"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2023 21:34:12 GMT</pubDate>
    <dc:creator>gazoscreek</dc:creator>
    <dc:date>2023-03-15T21:34:12Z</dc:date>
    <item>
      <title>Splunk Ingest Actions - Using Eval Expression Syntax</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Ingest-Actions-Using-Eval-Expression-Syntax/m-p/634087#M108543</link>
      <description>&lt;P&gt;In configuring Rules for Splunk Ingest Actions&amp;nbsp;I have a sourcetype configured for numerous "Filter with Regular expression" stanzas that is properly dropping events ...&lt;BR /&gt;&lt;BR /&gt;However, I'd like to have the same sourcetype drop messages where host=foo-*&amp;nbsp; ...&lt;BR /&gt;&lt;BR /&gt;I might be able to use the eval expression to do that, but I'm not sure how to construct it in a format acceptable to the UI, and functionally appropriate.&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;eval true = if(&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;match&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(host,"^foo-"),true,null())&lt;BR /&gt;&lt;BR /&gt;I'm sure that's wrong, but there really are no examples that I've been able to find other than "true()"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 21:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Ingest-Actions-Using-Eval-Expression-Syntax/m-p/634087#M108543</guid>
      <dc:creator>gazoscreek</dc:creator>
      <dc:date>2023-03-15T21:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Ingest Actions - Using Eval Expression Syntax</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Ingest-Actions-Using-Eval-Expression-Syntax/m-p/665916#M111798</link>
      <description>&lt;P&gt;I know this is quite a late response, but you should be able to accomplish this with using the "Filter using Regex".&lt;/P&gt;&lt;P&gt;Select "host" for Source Field&lt;/P&gt;&lt;P&gt;In "&lt;SPAN&gt;Drop Events Matching Regular Expression", enter ^foo- &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That will set it so any events with the host field value, that starts with foo- will be dropped.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 19:17:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Ingest-Actions-Using-Eval-Expression-Syntax/m-p/665916#M111798</guid>
      <dc:creator>jbillings21</dc:creator>
      <dc:date>2023-10-23T19:17:16Z</dc:date>
    </item>
  </channel>
</rss>

