# Filebest not reading log files whos names as numeric only

**URL:** https://discuss.elastic.co/t/filebest-not-reading-log-files-whos-names-as-numeric-only/288672
**Category:** Beats
**Tags:** filebeat
**Created:** [November 8, 2021, 7:31pm UTC](https://discuss.elastic.co/t/filebest-not-reading-log-files-whos-names-as-numeric-only/288672 "2021-11-08T19:31:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Azfar](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Azfar](https://discuss.elastic.co/u/Azfar)
#### Post date: [November 8, 2021, 7:31pm UTC](https://discuss.elastic.co/t/filebest-not-reading-log-files-whos-names-as-numeric-only/288672/1 "2021-11-08T19:31:40Z")

</div>

I have log files whose names are in numbers only like "34567854322", these are an application logs and I don't have control to append any extension.

> Blockquote  
> ls -l  
> total 12  
> -rw-rw-r-- 1 barakat barakat 1254 Nov 2 13:09 508747530172  
> -rw-rw-r-- 1 barakat barakat 1254 Nov 2 13:08 513655054771  
> -rw-r--r-- 1 root root 1254 Nov 8 22:51 5136550547712

My config is below:

> Blockquote  
> paths:  
> - /var/report/api/\*

> Blockquote  
> filebeat test config  
> Config OK

Those reports contain long one liner data and i dont have any exclusion, ignore or multi-line expression defined so pretty simple setup.

EDIT:

So I checked the logs and filebeat is picking those files but it is not pushing the data to elasticsearch

> Blockquote  
> Nov 8 23:55:58 localhost filebeat[25168]: 2021-11-08T23:55:58.825+0400#011INFO#011[input.harvester]#011log/harvester.go:309#011Harvester started for file.#011{"input\_id": "b9b872d3-412a-421f-9b66-ba2473c7d94a", "source": "/var/www/vhosts/example.com/var/report/api/508747530172", "state\_id": "native::1977181-66306", "finished": false, "os\_id": "1977181-66306", "old\_source": "/var/www/vhosts/example.com/var/report/api/508747530172", "old\_finished": true, "old\_os\_id": "1977181-66306", "harvester\_id": "1cf78a3a-ee03-49de-9113-17c9fcd4f4aa"}

File content:

> Blockquote  
> "Fatal Error: 'Uncaught Error: Class 'Mobile\CardApi\Model\DeleteSavedCardManagement' not found in /var/www/vhosts/example.com/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121\nStack trace:\n#0 /var/www/vhosts/example.com/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory-\>createObject('Mobile\\CardApi\\...', Array)\n#1 /var/www/vhosts/example.com/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled-\>create('Mobile\\CardApi\\...', Array)\n#2 /var/www/vhosts/example.com/vendor/magento/framework-message-queue/ConsumerFactory.php(163): Magento\Framework\ObjectManager\ObjectManager-\>create('Mobile\\CardApi\\...')\n#3 /var/www/vhosts/example.com/vendor/magento/framework-message-queue/ConsumerFactory.php(101): Magento\Framework\MessageQueue\ConsumerFactory-\>getHandlersFromCommunicationConfig('async.mobile.ca...')\n#4 /var/www/vhosts/example.com/vendor/magento/fram' in '/var/www/vhosts/example.com/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php' on line 121"

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [November 8, 2021, 9:05pm UTC](https://discuss.elastic.co/t/filebest-not-reading-log-files-whos-names-as-numeric-only/288672/2 "2021-11-08T21:05:09Z")

</div>

> Those reports contain **long one liner data** and i dont have any exclusion, ignore or multi-line expression defined so pretty simple setup.

Those files have just one long line?

Filebeat needs a newline character after the last line in the file to be able to read it. [[documentation](https://www.elastic.co/guide/en/beats/filebeat/current/newline-character-required-eof.html#newline-character-required-eof)].

---

<div class="post-metadata">

### Author: ![Azfar](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Azfar](https://discuss.elastic.co/u/Azfar)
#### Post date: [November 9, 2021, 9:46am UTC](https://discuss.elastic.co/t/filebest-not-reading-log-files-whos-names-as-numeric-only/288672/3 "2021-11-09T09:46:15Z")

</div>

they all have long single line and they dont have new line char.

---

<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: [December 7, 2021, 11:46am UTC](https://discuss.elastic.co/t/filebest-not-reading-log-files-whos-names-as-numeric-only/288672/4 "2021-12-07T11:46:35Z")

</div>

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