# Is there any solution for just checking the file availability？

**URL:** https://discuss.elastic.co/t/is-there-any-solution-for-just-checking-the-file-availability/282668
**Category:** Beats
**Tags:** filebeat
**Created:** [August 27, 2021, 12:44pm UTC](https://discuss.elastic.co/t/is-there-any-solution-for-just-checking-the-file-availability/282668 "2021-08-27T12:44:07Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![lpf86731782](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@lpf86731782](https://discuss.elastic.co/u/lpf86731782)
#### Post date: [August 27, 2021, 12:44pm UTC](https://discuss.elastic.co/t/is-there-any-solution-for-just-checking-the-file-availability/282668/1 "2021-08-27T12:44:07Z")

</div>

the system receives a bunch of files daily, monitoring the file availability and size is important for the service quality. No need to check the file content though. Is there any proper way to achieve this with ELK?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [August 30, 2021, 1:13am UTC](https://discuss.elastic.co/t/is-there-any-solution-for-just-checking-the-file-availability/282668/2 "2021-08-30T01:13:32Z")

</div>

Welcome to our community! 😃

Check the content for what exactly?

---

<div class="post-metadata">

### Author: ![lpf86731782](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@lpf86731782](https://discuss.elastic.co/u/lpf86731782)
#### Post date: [August 30, 2021, 4:59am UTC](https://discuss.elastic.co/t/is-there-any-solution-for-just-checking-the-file-availability/282668/3 "2021-08-30T04:59:05Z")

</div>

Sry I dont get you. but there is no need to check the rows or columns in file. Just to visualize if the file received or not ，alert out when file delay.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [August 30, 2021, 10:23pm UTC](https://discuss.elastic.co/t/is-there-any-solution-for-just-checking-the-file-availability/282668/4 "2021-08-30T22:23:25Z")

</div>

Are you able to identify the files via the name, or some kind of other identification method?

---

<div class="post-metadata">

### Author: ![lpf86731782](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@lpf86731782](https://discuss.elastic.co/u/lpf86731782)
#### Post date: [August 31, 2021, 10:18am UTC](https://discuss.elastic.co/t/is-there-any-solution-for-just-checking-the-file-availability/282668/5 "2021-08-31T10:18:43Z")

</div>

yeap，they are saved in specific file folders and can be located with regex.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [August 31, 2021, 9:55pm UTC](https://discuss.elastic.co/t/is-there-any-solution-for-just-checking-the-file-availability/282668/6 "2021-08-31T21:55:17Z")

</div>

In the events that are processed that is.

If they are you could do an alert on them to say if filename X hasn't been seen in A time period, then generate an alert.

---

<div class="post-metadata">

### Author: ![Marius\_Iversen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_iversen/32/68988_2.png) [@Marius\_Iversen](https://discuss.elastic.co/u/Marius_Iversen)
#### Post date: [September 1, 2021, 9:44am UTC](https://discuss.elastic.co/t/is-there-any-solution-for-just-checking-the-file-availability/282668/7 "2021-09-01T09:44:05Z")

</div>

Might not fit the usecase totally, but if I understand you correctly, you are mostly interested in the fact that a file has been created (or not).  
While it might be easier to have some sort of bash script check that running in a cron job, and read the output of that with filebeat, there might be another way around it.

With auditbeat, you have a module called file\_integrity. You are able to give it a list of folders to monitor, and it will generate an event once a file is created, deleted and updated.  
That way you can create Kibana Alerts for example, when new files has not been created in a while, or if files that shouldn't be modified has been updated etc.  
Ref: [File Integrity Module | Auditbeat Reference [7.14] | Elastic](https://www.elastic.co/guide/en/beats/auditbeat/current/auditbeat-module-file_integrity.html)

Do you think that might work @lpf86731782 ?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 29, 2021, 11:44am UTC](https://discuss.elastic.co/t/is-there-any-solution-for-just-checking-the-file-availability/282668/8 "2021-09-29T11:44:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
