<?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: How to prevent splunk forwarder for sending  gibberish data over to the indexer? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551595#M91545</link>
    <description>&lt;P&gt;If a regular expression can describe the gibberish or non-gibberish lines then a set of transforms can be written to send the gibberish to nullQueue.&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 12:56:54 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-05-14T12:56:54Z</dc:date>
    <item>
      <title>How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551477#M91529</link>
      <description>&lt;P&gt;As seen in&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/How-to-establish-secure-connection-between-Universal-Forwarders/m-p/431732" target="_blank" rel="noopener"&gt;Solved: How to establish secure connection between Univers... - Splunk Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;there are ways to secure the connection between the forwarder and indexer. This is to stop unauthorized users from forwarding to the Splunk Indexer, and managing the other splunk components.&lt;/P&gt;&lt;P&gt;More detailed steps on ssl , and some token can be seen here for stopping unauthorized components to connect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this does not stop the forwarder for &lt;STRONG&gt;sending rubbish data&lt;/STRONG&gt; to the indexer,&amp;nbsp; is there any way that the forwarder or some component can &lt;STRONG&gt;packet inspect the data, and stop those rubbish data or strange data&lt;/STRONG&gt; from sending to the indexer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 17:12:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551477#M91529</guid>
      <dc:creator>z080236</dc:creator>
      <dc:date>2021-05-13T17:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551501#M91532</link>
      <description>&lt;P&gt;What is your definition of "rubbish data" and how is Splunk to know which is rubbish and which is not?&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 20:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551501#M91532</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-05-13T20:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551513#M91534</link>
      <description>&lt;P&gt;I will consider that anything that does not meet the sourcetype in the monitor file, which is configured at the heavy forwarder,&amp;nbsp; to be "rubbish data"&lt;/P&gt;&lt;P&gt;is there any way to validate at the heavy forwarder end?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 23:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551513#M91534</guid>
      <dc:creator>z080236</dc:creator>
      <dc:date>2021-05-13T23:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551535#M91540</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/104334"&gt;@z080236&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I think that you should design with more attention your inputs!&lt;/P&gt;&lt;P&gt;In other words, you should:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;at first, list and analyze the data to take from a source and identify the ones that you want to index;&lt;/LI&gt;&lt;LI&gt;then modify your inputs to take only the data you want and not other data (using whitelists and blacklists), in other words you have to modify your inputs.conf avoiding *.* but choosing only the wanted files;&lt;/LI&gt;&lt;LI&gt;then associate to each of that type of data a sourcetype that characterizes it;&lt;/LI&gt;&lt;LI&gt;at least, if there are still unwanted data, you can create a filter on Indexer to delete those data before indexing (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.3/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.3/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 05:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551535#M91540</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-05-14T05:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551557#M91543</link>
      <description>&lt;P&gt;let's say we monitor a folder which has syslog.log in it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this log there is 3 lines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the first and 3rd lines are showing gibberish data and does not conform to the source type&lt;/P&gt;&lt;P&gt;the second line is correct data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the Splunk forwarder intelligent enough to just forward the second line and ignore the first and third line, using the whitelist method you have described?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 07:56:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551557#M91543</guid>
      <dc:creator>z080236</dc:creator>
      <dc:date>2021-05-14T07:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551595#M91545</link>
      <description>&lt;P&gt;If a regular expression can describe the gibberish or non-gibberish lines then a set of transforms can be written to send the gibberish to nullQueue.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 12:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551595#M91545</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-05-14T12:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551596#M91546</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/104334"&gt;@z080236&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, I'm pretty sure that Splunk is so intelligent to delete a not relevant part of an event.&lt;/P&gt;&lt;P&gt;If you want to delete a part of each event you have to intervene in props.conf using the SEDCMD command.&lt;/P&gt;&lt;P&gt;In other words, you have to find the regex that identifies the event part that you want and create a SEDCMD command to delete the other parts.&lt;/P&gt;&lt;P&gt;You can find how to do this at&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-do-I-ignore-part-of-an-event/m-p/345367" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-do-I-ignore-part-of-an-event/m-p/345367&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Need-SEDCMD-Help/td-p/409993" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Need-SEDCMD-Help/td-p/409993&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.3/Admin/Propsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.3/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 12:57:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551596#M91546</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-05-14T12:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551691#M91563</link>
      <description>&lt;P&gt;at first, list and analyze the data to take from a source and identify the ones that you want to index&lt;/P&gt;&lt;P&gt;&lt;EM&gt;yes, we have already done this. We already used &lt;STRONG&gt;monitor on folder&lt;/STRONG&gt; at the Splunk forwarder to d&lt;STRONG&gt;efine the sourcetype and the index.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;However, we can't stop if the external person send us invalid file types and weird content, it will just ingest in it.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So far, I have searched Splunk answers and documentation, there is no way to ensure the content is "&lt;STRONG&gt;clean&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what whitelist can do, is to monitor file extension only&lt;/P&gt;&lt;P&gt;For example, to monitor only files with the .log extension, make the following change:&lt;/P&gt;&lt;DIV class="samplecode"&gt;&lt;PRE&gt;[monitor:///mnt/logs]
    whitelist = \.log$&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or based on the file name, but can't check the content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;at least, if there are still unwanted data, you can create a filter on Indexer to delete those data before indexing (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.3/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.3/Forwarding/Routeandfilterdatad#Filter_event_data_...&lt;/A&gt;).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This one is based on specific regex expression, doesnt seem to fit in, as we are looking for a whitelist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus, if I am monitoring this folder&lt;/P&gt;&lt;P&gt;[monitor:///var/log/putlogshere]&lt;/P&gt;&lt;P&gt;whitelist = \.log$&lt;/P&gt;&lt;P&gt;sourcetype=xx&lt;/P&gt;&lt;P&gt;index=index1&lt;/P&gt;&lt;P&gt;and I implement the whitelist ,&amp;nbsp; the user can still send in a log with weird data which fulfil the whitelist condition and it will still be forwarded to the indexer, is that correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 May 2021 09:16:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551691#M91563</guid>
      <dc:creator>z080236</dc:creator>
      <dc:date>2021-05-15T09:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551715#M91567</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/104334"&gt;@z080236&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;At first why do you have users that can change Splunk Forwarders configurations?&lt;/P&gt;&lt;P&gt;Anyway if you have users that modify inputs adding stanzas that take weird logs, you could do three things:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;at first, manage the forwarders (all or at least the ones that the users can modify) under Deployment Server that check Forwarders and push the correct configurations when modified.&lt;/LI&gt;&lt;LI&gt;In addition, you can pun on your indexers a filter (but you have to identify each log to take using regexes) that takes only the logs you want and discard the others.&lt;/LI&gt;&lt;LI&gt;Then you could create an alert that fires when configurations are changed and/or you receive weird logs, so you can cut the little hand of that users ! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 15 May 2021 16:34:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551715#M91567</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-05-15T16:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551733#M91569</link>
      <description>&lt;P&gt;&lt;SPAN&gt;At first why do you have users that can change Splunk Forwarders configurations?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is not what I want to achieve, what I want to achieve to ensure that content sent to the forwarder is &lt;STRONG&gt;clean&lt;/STRONG&gt;.&amp;nbsp; Based on the solution above, you proposed &lt;STRONG&gt;whitelist&lt;/STRONG&gt;, and &lt;STRONG&gt;filter and routing based on regex&lt;/STRONG&gt;. Another way I heard of is to check the timestamp of the log, and if it is before xx days, it wont be ingested.&amp;nbsp; &amp;nbsp;However, assuming I implement all the 3 checks, is that enough to ensure the content that is received from the forwarder is clean?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can't stop if one day the remote user put a wrong macro file , rename the extension to .log and send to me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then, I will not be sure Splunk will just ingest the content like this or not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway if you have users that modify inputs adding stanzas that take weird logs, you could do three things:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is not what I want to achieve, I just want the forwarder to be able to &lt;STRONG&gt;prevent&lt;/STRONG&gt; those weird&amp;nbsp; entries from being ingested, if one day,&amp;nbsp; the &lt;STRONG&gt;user's server files got corrupted&lt;/STRONG&gt;. Then, the file goes to my system and gets ingested in.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 May 2021 07:22:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551733#M91569</guid>
      <dc:creator>z080236</dc:creator>
      <dc:date>2021-05-16T07:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551751#M91573</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/104334"&gt;@z080236&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you want that each user can ingest each kind of data, the only hint I can give you is to monitor those inputs.&lt;/P&gt;&lt;P&gt;In other words, when someone needs other logs, maintain the control&amp;nbsp; on the flow giving you the rules for ingestions to the user.&lt;/P&gt;&lt;P&gt;I say this because Splunk can filter data but it needs one or more rules in data ingestion but&amp;nbsp;you're saying that there isn't any rule in ingestion and users can create every kind of ingestion.&lt;/P&gt;&lt;P&gt;The only way is to create a governance of ingestion:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;you can plan the ingestions with your users and create together the correct inputs,&lt;/LI&gt;&lt;LI&gt;you can leave the users free to create their inputs and then you monitor flows and create the filters.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;About the check you asked about ingestion of old data, you can have this check inserting in inputs.conf on Forwarders:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ignoreOlderThan = &amp;lt;non-negative integer&amp;gt;[s|m|h|d]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as described in&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/Latest/Admin/Inputsconf" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/Latest/Admin/Inputsconf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or on indexers, put in props.conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MAX_DAYS_AGO = &amp;lt;integer&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as you can see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/Latest/Admin/Propsconf" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/Latest/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But in this way you solve only a little part of the problem: as I said, you have a governance problem!&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 16 May 2021 15:10:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551751#M91573</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-05-16T15:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551911#M91596</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I say this because Splunk can filter data but it needs one or more rules in data ingestion but&amp;nbsp;you're saying that there isn't any rule in ingestion and users can create every kind of ingestion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is not what I am saying.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am saying I have &lt;STRONG&gt;already&amp;nbsp;planned the sourcetype , index and filepath/filetype that I am receiving&lt;/STRONG&gt; from my user.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But there's &lt;STRONG&gt;no stopping the user&lt;/STRONG&gt; from &lt;STRONG&gt;putting a file&lt;/STRONG&gt; that is &lt;STRONG&gt;different from the sourcetype&lt;/STRONG&gt; that I am monitoring.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In the case of the above scenario, what will likely happen?&lt;/P&gt;&lt;P&gt;1. Splunk ingest the content and forward to the indexer, if it is not picked up by the filter.&lt;/P&gt;&lt;P&gt;2. Splunk filters out the content, if it is picked up by the filter with the 3 methods, timestamp, file extension/file name, regular expression whitelist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 17:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551911#M91596</guid>
      <dc:creator>z080236</dc:creator>
      <dc:date>2021-05-17T17:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551926#M91599</link>
      <description>&lt;P&gt;If Splunk is monitoring a particular filepath for data in a certain format and someone inserts a file with data in a different format into that filepath then Splunk very likely will not recognize the change.&amp;nbsp; It will do its best to interpret the alien file as though it was normal.&amp;nbsp; Depending on how alien the file is Splunk may complain about the timestamps being in the wrong format or not in the expected location.&amp;nbsp; However, Splunk will NOT say "you told me to expect sourcetype 'foo', but this is sourcetype 'bar' so I'm not touching it".&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 21:13:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/551926#M91599</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-05-17T21:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk forwarder for sending  gibberish data over to the indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/552558#M91662</link>
      <description>&lt;P&gt;OK this is my final question&lt;/P&gt;&lt;P&gt;We have a requirement to stream the events from a cloud Splunk SIEM to an on-prem SIEM&lt;/P&gt;&lt;P&gt;This is the splunk flow:&lt;/P&gt;&lt;P&gt;Cloud Splunk&amp;nbsp; -&amp;gt; On Prem Splunk Fwd (9997) -&amp;gt; On prem Indexer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cloud Splunk currently sends &lt;STRONG&gt;indexA, indexB, indexC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my Splunk Forwarder end, I only want data from &lt;STRONG&gt;indexA.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Monitornetworkports" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Monitornetworkports&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I configure the inputs.conf as follows:&lt;/P&gt;&lt;PRE&gt;[splunktcp://9997]
disabled = 0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;There doesn't seem to be a whitelist for the index, it seems whatever I receive, I will forward to the indexer.&lt;/P&gt;&lt;P&gt;I looked through the documentation , doesn't seem it can filter by &lt;STRONG&gt;index&lt;/STRONG&gt;, only can filter by &lt;STRONG&gt;regex&lt;/STRONG&gt; events at output.conf&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.0/Forwarding/Routeandfilterdatad#Filter_data_by_target_index" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.0/Forwarding/Routeandfilterdatad#Filter_data_by_target_index&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 12:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-splunk-forwarder-for-sending-gibberish-data-over/m-p/552558#M91662</guid>
      <dc:creator>z080236</dc:creator>
      <dc:date>2021-05-21T12:50:16Z</dc:date>
    </item>
  </channel>
</rss>

