<?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: Can Splunk read inside a file and filter based on a word inside? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-read-inside-a-file-and-filter-based-on-a-word-inside/m-p/605195#M210462</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;I think the idea is for Docker to leave a mark (e.g., a comment) in /etc/hosts to indicate that it intentionally modified the file. &amp;nbsp;But without information about how the original alert is set up, all we can say is "yes, it is possible," even though a plausible implementation could be cumbersome.&lt;/P&gt;&lt;P&gt;Additionally, using marker in hosts file itself leaves the file open to malicious attacks. &amp;nbsp;Another possible way to suppress a given alert on condition is to design a separate message path from Docker into Splunk. &amp;nbsp;All these are doable. &amp;nbsp;The question is how much effort.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2022 18:55:06 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2022-07-11T18:55:06Z</dc:date>
    <item>
      <title>Can Splunk read inside a file and filter based on a word inside?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-read-inside-a-file-and-filter-based-on-a-word-inside/m-p/605151#M210455</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I want to create an alert for hosts file modification.&lt;/P&gt;&lt;P&gt;Found the build in one here on the forums but I would like to add a filter that can read inside the file and when it's being modified by Docker, it would ignore and won't activate the alert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the assistance!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 13:58:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-read-inside-a-file-and-filter-based-on-a-word-inside/m-p/605151#M210455</guid>
      <dc:creator>NizanCohen</dc:creator>
      <dc:date>2022-07-11T13:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk read inside a file and filter based on a word inside?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-read-inside-a-file-and-filter-based-on-a-word-inside/m-p/605187#M210461</link>
      <description>&lt;P&gt;I'm not aware of anything tells Splunk *who* is modifying a file.&amp;nbsp; Splunk just gets the new data immediately after it is written.&lt;/P&gt;&lt;P&gt;If there is something in the data itself that says it was written by Docker then you could recognize that and send the line to the null queue.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 17:17:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-read-inside-a-file-and-filter-based-on-a-word-inside/m-p/605187#M210461</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-11T17:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk read inside a file and filter based on a word inside?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-read-inside-a-file-and-filter-based-on-a-word-inside/m-p/605195#M210462</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;I think the idea is for Docker to leave a mark (e.g., a comment) in /etc/hosts to indicate that it intentionally modified the file. &amp;nbsp;But without information about how the original alert is set up, all we can say is "yes, it is possible," even though a plausible implementation could be cumbersome.&lt;/P&gt;&lt;P&gt;Additionally, using marker in hosts file itself leaves the file open to malicious attacks. &amp;nbsp;Another possible way to suppress a given alert on condition is to design a separate message path from Docker into Splunk. &amp;nbsp;All these are doable. &amp;nbsp;The question is how much effort.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 18:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-read-inside-a-file-and-filter-based-on-a-word-inside/m-p/605195#M210462</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-11T18:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk read inside a file and filter based on a word inside?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-read-inside-a-file-and-filter-based-on-a-word-inside/m-p/605198#M210463</link>
      <description>&lt;P&gt;I don't need to know who modified it but to filter out all Docker's updates (which are automatic).&lt;/P&gt;&lt;P&gt;&lt;A href="https://research.splunk.com/deprecated/windows_hosts_file_modification/" target="_blank"&gt;https://research.splunk.com/deprecated/windows_hosts_file_modification/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;^that's the alert I currently using for that.&lt;/P&gt;&lt;P&gt;I would like to filter out Docker so when there is a machine with Docker related update, it won't alert me.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 19:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-read-inside-a-file-and-filter-based-on-a-word-inside/m-p/605198#M210463</guid>
      <dc:creator>NizanCohen</dc:creator>
      <dc:date>2022-07-11T19:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk read inside a file and filter based on a word inside?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-read-inside-a-file-and-filter-based-on-a-word-inside/m-p/605202#M210464</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;I don't need to know who modified it but to filter out all Docker's updates (which are automatic).&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240781"&gt;@NizanCohen&lt;/a&gt;&amp;nbsp;that is exactly what richgalloway&amp;nbsp;points out: How does Splunk (or anybody/anything, for that matter) know?&lt;/P&gt;&lt;P&gt;If you know of a signal to tell whether there is a Docker related update in events that your Splunk receives, there is always a way to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 21:33:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-read-inside-a-file-and-filter-based-on-a-word-inside/m-p/605202#M210464</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-11T21:33:42Z</dc:date>
    </item>
  </channel>
</rss>

