<?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 do I configure an alert for missing files from different directories? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-do-I-configure-an-alert-for-missing-files-from-different/m-p/417604#M7276</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;as a simple first approach it could be enough to:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;set your time range to the last hour an&lt;/LI&gt;
&lt;LI&gt;extract the filename with help of regex if not already done&lt;/LI&gt;
&lt;LI&gt;do a | stats count by filename&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The result should always be 2 if every file is present in both directories. If it is not 2, you could trigger your alert.&lt;/P&gt;

&lt;P&gt;Greetings&lt;/P&gt;

&lt;P&gt;Tom&lt;/P&gt;</description>
    <pubDate>Mon, 03 Dec 2018 09:29:16 GMT</pubDate>
    <dc:creator>tom_frotscher</dc:creator>
    <dc:date>2018-12-03T09:29:16Z</dc:date>
    <item>
      <title>How do I configure an alert for missing files from different directories?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-configure-an-alert-for-missing-files-from-different/m-p/417603#M7275</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I need help creating an alert for the difference of 2 directories. Let's say:  sender directory has files 4 but receiver directory has 2. Now, I need to configure an alert for 2 missing files with names/details from receiver directory.&lt;/P&gt;

&lt;P&gt;Getting the below outputs from each directory on a scheduled basis (1hr), I need to compare 2 directories and get the output for the missing file names and trigger an alert.&lt;/P&gt;

&lt;P&gt;Sender Directory&lt;BR /&gt;
[root] ➤ ls -l&lt;BR /&gt;
total 0&lt;BR /&gt;
-rwx------    1 Users UsersGrp         0 Dec  3 13:16 file1.txt&lt;BR /&gt;
-rwx------    1 Users UsersGrp         0 Dec  3 13:16 file2.txt&lt;BR /&gt;
-rwx------    1 Users UsersGrp         0 Dec  3 13:16 file3.txt&lt;BR /&gt;
-rwx------    1 Users UsersGrp         0 Dec  3 13:16 file4.txt&lt;/P&gt;

&lt;P&gt;Receiver Directory&lt;BR /&gt;
[root] ➤ ls -l&lt;BR /&gt;
total 0&lt;BR /&gt;
-rwx------    1 Users UsersGrp         0 Dec  3 13:16 file1.txt&lt;BR /&gt;
-rwx------    1 Users UsersGrp         0 Dec  3 13:16 file2.txt&lt;/P&gt;

&lt;P&gt;Please help me with queries to configure alert.&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 08:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-configure-an-alert-for-missing-files-from-different/m-p/417603#M7275</guid>
      <dc:creator>kpavan</dc:creator>
      <dc:date>2018-12-03T08:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I configure an alert for missing files from different directories?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-configure-an-alert-for-missing-files-from-different/m-p/417604#M7276</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;as a simple first approach it could be enough to:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;set your time range to the last hour an&lt;/LI&gt;
&lt;LI&gt;extract the filename with help of regex if not already done&lt;/LI&gt;
&lt;LI&gt;do a | stats count by filename&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The result should always be 2 if every file is present in both directories. If it is not 2, you could trigger your alert.&lt;/P&gt;

&lt;P&gt;Greetings&lt;/P&gt;

&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 09:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-configure-an-alert-for-missing-files-from-different/m-p/417604#M7276</guid>
      <dc:creator>tom_frotscher</dc:creator>
      <dc:date>2018-12-03T09:29:16Z</dc:date>
    </item>
  </channel>
</rss>

