<?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: Monitoring the content of a configuration file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-content-of-a-configuration-file/m-p/407825#M72320</link>
    <description>&lt;P&gt;Hi u568675,&lt;/P&gt;

&lt;P&gt;Well, that is what fschange (which btw is deprecated since Splunk 5.x) does:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[fschange:&amp;lt;path&amp;gt;]
* Monitors changes (such as additions, updates, and deletions) to this
  directory and any of its sub-directories.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Source &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/admin/Inputsconf"&gt;https://docs.splunk.com/Documentation/Splunk/latest/admin/Inputsconf&lt;/A&gt; . &lt;/P&gt;

&lt;P&gt;If you want to index config files and index when they change, you need to add a monitor stanza and add the option &lt;CODE&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/CODE&gt; to the monitor. This will re-index the file once it changes.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2019 01:39:59 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2019-06-05T01:39:59Z</dc:date>
    <item>
      <title>Monitoring the content of a configuration file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-content-of-a-configuration-file/m-p/407824#M72319</link>
      <description>&lt;P&gt;I have a client that wants to monitor a system configuration file and specifically the content of the configuration file. They would like to index the content of a file and ultimately the only index the content again when the configuration file content changes. &lt;BR /&gt;
We've tied using "fschange" but it's only outputting the file characteristics (see below) not the file content  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Tue Jun 4 10:07:32 2019 action=add, path="///opt/mapr/spark/spark-2.2.1/conf/spark-defaults.conf", isdir=0, size=1957, gid=1446, uid=930, modtime="Wed Jan 23 15:58:32 2019", mode="rw-r--r--", hash=***
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the inputs.conf configuration setting for "fschange" that we've tried are: &lt;BR /&gt;
&lt;CODE&gt;[fschange:///opt/mapr/spark/spark-2.2.1/conf/spark-defaults.conf]&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = _audit
recurse = false
followLinks = false
signedaudit = false
fullEvent = true
sendEventMaxSize = 1048576
delayInMills = 1000***
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Has someone successfully index a configuration file content and re-indexed the configuration content when the configuration content changes? &lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 21:50:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-content-of-a-configuration-file/m-p/407824#M72319</guid>
      <dc:creator>u568675</dc:creator>
      <dc:date>2019-06-04T21:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring the content of a configuration file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-content-of-a-configuration-file/m-p/407825#M72320</link>
      <description>&lt;P&gt;Hi u568675,&lt;/P&gt;

&lt;P&gt;Well, that is what fschange (which btw is deprecated since Splunk 5.x) does:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[fschange:&amp;lt;path&amp;gt;]
* Monitors changes (such as additions, updates, and deletions) to this
  directory and any of its sub-directories.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Source &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/admin/Inputsconf"&gt;https://docs.splunk.com/Documentation/Splunk/latest/admin/Inputsconf&lt;/A&gt; . &lt;/P&gt;

&lt;P&gt;If you want to index config files and index when they change, you need to add a monitor stanza and add the option &lt;CODE&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/CODE&gt; to the monitor. This will re-index the file once it changes.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 01:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-content-of-a-configuration-file/m-p/407825#M72320</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-06-05T01:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring the content of a configuration file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-content-of-a-configuration-file/m-p/407826#M72321</link>
      <description>&lt;P&gt;Hi @u568675  ,&lt;/P&gt;

&lt;P&gt;Did you have a chance to check out an answer? If it worked, please resolve this post by approving it! If your problem is still not solved, keep us updated so that someone else can help you. &lt;/P&gt;

&lt;P&gt;Thanks for posting!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 15:49:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-content-of-a-configuration-file/m-p/407826#M72321</guid>
      <dc:creator>evania</dc:creator>
      <dc:date>2019-06-07T15:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring the content of a configuration file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-content-of-a-configuration-file/m-p/407827#M72322</link>
      <description>&lt;P&gt;We added crcSalt =  to the input stanza and tested by modifying the configuration file but unfortunately it do not generate an event. &lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 18:27:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-content-of-a-configuration-file/m-p/407827#M72322</guid>
      <dc:creator>u568675</dc:creator>
      <dc:date>2019-06-07T18:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring the content of a configuration file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-content-of-a-configuration-file/m-p/407828#M72323</link>
      <description>&lt;P&gt;Did you also change the stanza from &lt;CODE&gt;[fschange://&lt;/CODE&gt; to be &lt;CODE&gt;[monitor://&lt;/CODE&gt; as mentioned in my answer?&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 21:36:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-content-of-a-configuration-file/m-p/407828#M72323</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-06-07T21:36:35Z</dc:date>
    </item>
  </channel>
</rss>

