<?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 have splunk filter read values externally? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/697347#M115681</link>
    <description>&lt;P&gt;The general answer is yes - you can filter out events. The way to do it specific to your need will depend on your precise use case.&lt;/P&gt;&lt;P&gt;Within Splunk you can do it like this&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you can filter out in Azure so you simply don't send data to Splunk - even better. But this is out of scope of this forum and you have to ask some experienced Azure admins how to do so.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2024 18:30:22 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-08-26T18:30:22Z</dc:date>
    <item>
      <title>Is there a way to have splunk filter read values externally?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/696898#M115633</link>
      <description>&lt;P&gt;We want to limit the ingestion of data that is coming from some sources (in this case the value would be in Properties.HostName) because they basically are not working correctly (customer machines) and continue to spam the system. (Turning them off is not an option. ). I know that we can add hardcoded filters such as below:&lt;/P&gt;&lt;P&gt;Name: Serilog:Filter:nn:Args:expression&lt;/P&gt;&lt;P&gt;Value:&amp;nbsp;@p['AssemlyName'] = 'SomeAssembly.xxx.yyy' and&amp;nbsp;@p['HostName'] in ['Spammer1', 'Spammer2', ...]&lt;/P&gt;&lt;P&gt;But the spammers change from time to time and we can generate their list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is, if I have a list of these spammers (in any form needed) can I somehow use some sort of a value above of some other method to read from that list (in place of the "in [... ]" expression above)?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 22:01:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/696898#M115633</guid>
      <dc:creator>salavi</dc:creator>
      <dc:date>2024-08-20T22:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have splunk filter read values externally?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/696913#M115634</link>
      <description>&lt;P class="lia-align-left"&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/271349"&gt;@salavi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P class="lia-align-left"&gt;are you speaking of a filter at index or search time?&lt;/P&gt;&lt;P class="lia-align-left"&gt;if at search time, you can put the list in a lookup and use it for the search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt; [ | inputlookup your_lookup.csv | fields HostName]&lt;/LI-CODE&gt;&lt;P&gt;you can eventually refresh your lookup&amp;nbsp; taking values from a scheduled search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_lookup_search&amp;gt;
| dedup HostName
| table HostName
| outputlookup your_lookup.csv&lt;/LI-CODE&gt;&lt;P&gt;that you can schedule e.g. every hour.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 06:04:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/696913#M115634</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-08-21T06:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have splunk filter read values externally?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/696976#M115635</link>
      <description>&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, not in the search. I want to prevent these events (from certain hostnames) to even get ingested into Splunk to begin with. As I mentioned before, we can do this by adding a logging app service setting (on Azure), but it requires listing the hostnames individually. I was hoping there was a way to read from a list instead.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently we are doing something like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="salavi_0-1724257010673.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32346iFFFEF0FF70042434/image-size/medium?v=v2&amp;amp;px=400" role="button" title="salavi_0-1724257010673.png" alt="salavi_0-1724257010673.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 16:17:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/696976#M115635</guid>
      <dc:creator>salavi</dc:creator>
      <dc:date>2024-08-21T16:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have splunk filter read values externally?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/697027#M115636</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/271349"&gt;@salavi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;at index time, I'm not sure that there isn't any other solution, unless the Splunk Edge Processor will be available.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 05:53:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/697027#M115636</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-08-22T05:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have splunk filter read values externally?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/697037#M115637</link>
      <description>&lt;P&gt;Are you asking if you can do this on egress in Azure or are you trying to do equivalent thing on ingress in Splunk?&lt;/P&gt;&lt;P&gt;You can do filtering on input, if you use ingest-evals even using lookups (but not in the Cloud).&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 07:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/697037#M115637</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-08-22T07:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have splunk filter read values externally?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/697343#M115680</link>
      <description>&lt;P&gt;Basically I am trying to find a way to prevent data from certain hostnames to even get ingested into Splunk (cost cutting measure for one thing).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 18:17:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/697343#M115680</guid>
      <dc:creator>salavi</dc:creator>
      <dc:date>2024-08-26T18:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have splunk filter read values externally?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/697347#M115681</link>
      <description>&lt;P&gt;The general answer is yes - you can filter out events. The way to do it specific to your need will depend on your precise use case.&lt;/P&gt;&lt;P&gt;Within Splunk you can do it like this&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you can filter out in Azure so you simply don't send data to Splunk - even better. But this is out of scope of this forum and you have to ask some experienced Azure admins how to do so.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 18:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-have-splunk-filter-read-values-externally/m-p/697347#M115681</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-08-26T18:30:22Z</dc:date>
    </item>
  </channel>
</rss>

