<?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: Notification when file is missing in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644967#M223357</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rex field=source "(?&amp;lt;Filename&amp;gt;\w+\.csv)$"&lt;BR /&gt;? -&amp;gt; Zero or None&lt;BR /&gt;&amp;lt;Filename&amp;gt; -&amp;gt; Could you please explain what exactly &amp;lt;Filename&amp;gt; is causing here&lt;BR /&gt;w+ -&amp;gt; One or more letter, number, or _...&lt;BR /&gt;.csv)$ Name of file must end with .csv&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2023 17:04:00 GMT</pubDate>
    <dc:creator>appsik</dc:creator>
    <dc:date>2023-05-29T17:04:00Z</dc:date>
    <item>
      <title>How can I send a notification when file is missing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644823#M223288</link>
      <description>&lt;P&gt;Hello dear community,&lt;/P&gt;
&lt;P&gt;I am new here and hope for warm support.&lt;/P&gt;
&lt;P&gt;The following problem I have to solve: I have several files and if a document is missing, should be sent a notification with the reference to this file.&lt;/P&gt;
&lt;P&gt;Example:&lt;BR /&gt;File12324.txt&lt;BR /&gt;File21111.txt&lt;BR /&gt;Filefdfdf.txt&lt;BR /&gt;(naming without pattern)&lt;BR /&gt;If next day File21111.txt is missing, email goes out with content "..." + File21111.txt + "..."&lt;/P&gt;
&lt;P&gt;Thanks for the advice&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 16:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644823#M223288</guid>
      <dc:creator>appsik</dc:creator>
      <dc:date>2023-05-29T16:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644824#M223289</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257202"&gt;@appsik&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you should put the filenames to check in a lookup (called e.g. filenames.csv) containing at least a field called "filename".&lt;/P&gt;&lt;P&gt;Then you should run a simple search like the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| stats count BY filename
| append [ | inputlookup filename.csv | eval count=0 | fields filename count ]
| stats sum(count) AS total BY filename
| where total=0&lt;/LI-CODE&gt;&lt;P&gt;If you have problems to extract the filename field from your logs, I can help you but you should share some sample of your logs.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 14:52:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644824#M223289</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-27T14:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644826#M223290</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply!&lt;BR /&gt;I am not allowed to create a new file. It is only 2-3 files. Later I can catch it with regex&lt;/P&gt;&lt;P&gt;What I think:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=o sourcetyp=txt source="*\file1.txt"
OR "*\file2.txt"
OR "*\file3.txt" // if possible
| stats sum(source) AS total BY fileName - stats dc(source) as fileCount // if file2.txt is missing
| where total != 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;gt; alert trigger, I need name of "file2.txt" to send by email&lt;/P&gt;&lt;P&gt;Sorry, I am absolute beginner here&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 15:32:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644826#M223290</guid>
      <dc:creator>appsik</dc:creator>
      <dc:date>2023-05-27T15:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644832#M223293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257202"&gt;@appsik&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you cannot creat a lookup (check this because it's strange!) and you have to check only few files, please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index (source=*\file1.txt OR source=*\file2.txt OR source=*\file3.txt)
| rex field=source "(?&amp;lt;filename&amp;gt;\w+\.txt)$"
| stats count BY filename
| append [ | makeresults | eval filename=file1.txt, count=0 | fields filename count ]
| append [ | makeresults | eval filename=file2.txt, count=0 | fields filename count ]
| append [ | makeresults | eval filename=file3.txt, count=0 | fields filename count ]
| stats sum(count) AS total BY filename
| where total=0&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2023 08:58:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644832#M223293</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-28T08:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644855#M223302</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to better understand the background processes and have installed Splunk on my Windows machine.&lt;BR /&gt;I am now wondering how to get from my home: C:\Program Files\Splunk&lt;BR /&gt;Access any file via search console:&lt;/P&gt;&lt;P&gt;I created index:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my_index.png" style="width: 164px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25578i13B6CC90ED9603F2/image-size/small?v=v2&amp;amp;px=200" role="button" title="my_index.png" alt="my_index.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I created the following files:&lt;BR /&gt;C:\Program Files\Splunk\worldcities.csv&lt;BR /&gt;C:\Program Files\Splunk\worldcities1.csv&lt;BR /&gt;C:\Program Files\Splunk\worldcities2.csv&lt;/P&gt;&lt;P&gt;In the search console&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index sourcetype="csv" source="worldcities.csv"
| stats dc(source) as fileCount&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my_search.png" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25579iFA64CB2FD4B46A71/image-size/small?v=v2&amp;amp;px=200" role="button" title="my_search.png" alt="my_search.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I have fileCount: 0, so the file does not exist&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2023 17:17:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644855#M223302</guid>
      <dc:creator>appsik</dc:creator>
      <dc:date>2023-05-28T17:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644860#M223305</link>
      <description>&lt;P&gt;It doesn't work that way. Splunk doesn't simply process any files you throw into its directory.&lt;/P&gt;&lt;P&gt;See the introduction here: &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Data/WhatSplunkcanmonitor" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Data/WhatSplunkcanmonitor&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2023 20:22:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644860#M223305</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-05-28T20:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644861#M223306</link>
      <description>&lt;P&gt;Hallo &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already uploaded my files: file1.csv, file2.csv, file3.csv as described here: &lt;A href="https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-CSV-file-from-a-local-machine/m-p/232138" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-CSV-file-from-a-local-machine/m-p/232138&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2023 20:27:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644861#M223306</guid>
      <dc:creator>appsik</dc:creator>
      <dc:date>2023-05-28T20:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644873#M223317</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257202"&gt;@appsik&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you configured the input ro read and index these files?&lt;/P&gt;&lt;P&gt;It isn't suffient to create the index and run the search, you have to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ingest the sources,&lt;/LI&gt;&lt;LI&gt;parse them, choosing a correct sourcetype (in your case csv or a custom one),&lt;/LI&gt;&lt;LI&gt;and then index them,&lt;/LI&gt;&lt;LI&gt;at this point you can search them in the created index&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For more infos see &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.1/Data/Getstartedwithgettingdatain" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.1/Data/Getstartedwithgettingdatain&lt;/A&gt;&lt;/P&gt;&lt;P&gt;there are also many videos in the Splunk YouTube Channel that describe this process:&amp;nbsp;&lt;A href="https://www.youtube.com/@Splunkofficial" target="_blank"&gt;https://www.youtube.com/@Splunkofficial&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 05:26:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644873#M223317</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-29T05:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644888#M223324</link>
      <description>&lt;P&gt;OK. If you uploaded the file via GUI, as described in that article, it should be _somewhere_. Question is what sourcetype did you give it and whether it got properly timestamped and such.&lt;/P&gt;&lt;P&gt;Since it's - as I understand - your small testing installation, verify where your events are.&lt;/P&gt;&lt;PRE&gt;| tstats min(_time) as earliest max(_time) as latest count where index=* by index source sourcetype&lt;BR /&gt;| convert ctime(earliest) as earliest ctime(latest) as latest&lt;/PRE&gt;&lt;P&gt;Run this search over "all time" time range.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 07:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644888#M223324</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-05-29T07:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644900#M223326</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;Thank you, now I understand how the assignment works&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my_search.PNG" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25583i5A0DF3325BD20111/image-size/small?v=v2&amp;amp;px=200" role="button" title="my_search.PNG" alt="my_search.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We have a folder in production where it automatically looks, so I thought Splunk automatically looked in the home folder. That was a misunderstanding.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 09:26:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644900#M223326</guid>
      <dc:creator>appsik</dc:creator>
      <dc:date>2023-05-29T09:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644908#M223327</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your help!&lt;/P&gt;&lt;P&gt;Method with lookup table:&lt;BR /&gt;I have created and uploaded a table:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my_lookupTbl.PNG" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25584iF7D7F9FDB91D074E/image-size/small?v=v2&amp;amp;px=200" role="button" title="my_lookupTbl.PNG" alt="my_lookupTbl.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;I have assigned FileA.csv, FileB.csv, FileC.csv to my_index&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my_index.PNG" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25585iA488C54F022A8777/image-size/small?v=v2&amp;amp;px=200" role="button" title="my_index.PNG" alt="my_index.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;"FileD.csv" is missing in my_index and should be send by email.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my_search_with_lookup.PNG" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25586i29199B86EE950466/image-size/small?v=v2&amp;amp;px=200" role="button" title="my_search_with_lookup.PNG" alt="my_search_with_lookup.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 10:18:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644908#M223327</guid>
      <dc:creator>appsik</dc:creator>
      <dc:date>2023-05-29T10:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644909#M223328</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257202"&gt;@appsik&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;there's a difference in the filename field extracted from the index and the one in the lookup.&lt;/P&gt;&lt;P&gt;run the search without the last row and see if there are differences.&lt;/P&gt;&lt;P&gt;Please, share results and code in text mode (using the "Insert/Edit Code sample" button) instead as a screenshot, so I can use it.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 10:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644909#M223328</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-29T10:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644910#M223329</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;unfortunately I do not see any differences&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index
| stats count BY Filename
| append [ | inputlookup Lookup_table_with_filename1.csv | eval count=0 | fields Filename count ]
| stats sum(count) AS Total BY Filename&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 10:36:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644910#M223329</guid>
      <dc:creator>appsik</dc:creator>
      <dc:date>2023-05-29T10:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644918#M223331</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257202"&gt;@appsik&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;also uppercase and lowercase?&lt;/P&gt;&lt;P&gt;could you share the results of the search without the last row?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 11:57:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644918#M223331</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-29T11:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644922#M223333</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After run this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index
| stats count BY Filename
| append [ | inputlookup Lookup_table_with_filename1.csv | eval count=0 | fields Filename count ]
| stats sum(count) AS Total BY Filename&lt;/LI-CODE&gt;&lt;P&gt;I see:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my_search1.PNG" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25592i1918EEF73968B785/image-size/small?v=v2&amp;amp;px=200" role="button" title="my_search1.PNG" alt="my_search1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 12:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644922#M223333</guid>
      <dc:creator>appsik</dc:creator>
      <dc:date>2023-05-29T12:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644925#M223335</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257202"&gt;@appsik&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;which results if you run only the first two rows?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index
| stats count BY Filename&lt;/LI-CODE&gt;&lt;P&gt;If you haven't any result the problem is the main search.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 12:49:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644925#M223335</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-29T12:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644928#M223337</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see:&amp;nbsp;&lt;SPAN class=""&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;events&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but no results&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my_search2.PNG" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25593iB8327C174B3A1711/image-size/small?v=v2&amp;amp;px=200" role="button" title="my_search2.PNG" alt="my_search2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time!&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 12:55:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644928#M223337</guid>
      <dc:creator>appsik</dc:creator>
      <dc:date>2023-05-29T12:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644930#M223339</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257202"&gt;@appsik&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;this means that you have three events but yu haven't the field Filename.&lt;/P&gt;&lt;P&gt;If you run only the main search (first row) in Verbose Mode, have you this field in Interesting fields?&lt;/P&gt;&lt;P&gt;probably not, so try to run this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index
| rex field=source "(?&amp;lt;Filename&amp;gt;\w+\.txt)$"
| stats count BY Filename
| append [ | inputlookup Lookup_table_with_filename1.csv | eval count=0 | fields Filename count ]
| stats sum(count) AS Total BY Filename&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 12:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644930#M223339</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-29T12:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644935#M223342</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;this means that you have three events but yu haven't the field Filename.&lt;/P&gt;&lt;P&gt;&amp;gt;If you run only the main search (first row) in Verbose Mode, have you this field in Interesting fields?&lt;/P&gt;&lt;P&gt;&amp;gt;probably not&lt;/P&gt;&lt;P&gt;Thank you, I understood that&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my_search3.PNG" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25594i58E69EDE3108B028/image-size/small?v=v2&amp;amp;px=200" role="button" title="my_search3.PNG" alt="my_search3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now please return to my task&lt;/P&gt;&lt;P&gt;if I run:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index
| rex field=source "(?&amp;lt;Filename&amp;gt;\w+\.csv)$"
| stats count BY Filename
| append [ | inputlookup Lookup_table_with_filename1.csv | eval count=0 | fields Filename count ]
| stats sum(count) AS Total BY Filename&lt;/LI-CODE&gt;&lt;P&gt;I see:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my_search5.PNG" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25595iC780886B32DD16E0/image-size/small?v=v2&amp;amp;px=200" role="button" title="my_search5.PNG" alt="my_search5.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't understand what this (second line) line is for.&amp;nbsp;| rex field=source "(?&amp;lt;Filename&amp;gt;\w+\.csv)$"&lt;BR /&gt;Is it possible without RegEx?&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 13:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644935#M223342</guid>
      <dc:creator>appsik</dc:creator>
      <dc:date>2023-05-29T13:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when file is missing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644937#M223344</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257202"&gt;@appsik&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in the second raw I extract the filename from the source using a regex.&lt;/P&gt;&lt;P&gt;Anyway, regex is the only way to extract a parte or the source field.&lt;/P&gt;&lt;P&gt;If you don't know very well regexes I hint to use some time to learn this because regexes are very usegul in Splunk.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 13:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-send-a-notification-when-file-is-missing/m-p/644937#M223344</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-29T13:39:35Z</dc:date>
    </item>
  </channel>
</rss>

