I just loaded the file at the bottom with this config
You should try the same...
Do you have more than one error set in the file or just 1?
Are there new entries in the log or are you trying to reload the same file (which will not work)
if you want to do that you have you cleanup the data registry
You can start filebeat with to see what is being sent
filebeat -e -d "*"
# filestream is an input for collecting log messages from files.
- type: filestream
# Unique ID among all inputs, an ID is required.
id: cake-log
tags: "cake-error-log"
# Change to true to enable this input configuration.
enabled: true
# Paths that should be crawled and fetched. Glob based paths.
paths:
- /Users/sbrown/workspace/sample-data/discuss/multi-line/cake-error.log
#- c:\programdata\elasticsearch\logs\*
parsers:
- multiline:
type: pattern
pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
negate: true
match: after
I just loaded this file
2023-07-26 04:35:45 Error: [BadRequestException] Invalid Store
Request URL: /
Stack Trace:
#0 /var/www/build/storefront/storefront-516/app/Controller/AppController.php(76): AppController->checkStore()
#1 /var/www/build/storefront/storefront-516/app/Controller/SiteController.php(25): AppController->beforeFilter()
#2 /var/www/build/storefront/storefront-516/lib/Cake/Event/CakeEventManager.php(243): SiteController->beforeFilter()
#3 /var/www/build/storefront/storefront-516/lib/Cake/Controller/Controller.php(682): CakeEventManager->dispatch()
#4 /var/www/build/storefront/storefront-516/lib/Cake/Routing/Dispatcher.php(189): Controller->startupProcess()
#5 /var/www/build/storefront/storefront-516/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#6 /var/www/build/storefront/storefront-516/app/webroot/index.php(114): Dispatcher->dispatch()
#7 {main}
2023-07-26 04:36:45 Error: [BadRequestException] Invalid Store
Request URL: /
Stack Trace:
#0 /var/www/build/storefront/storefront-516/app/Controller/AppController.php(76): AppController->checkStore()
#1 /var/www/build/storefront/storefront-516/app/Controller/SiteController.php(25): AppController->beforeFilter()
#2 /var/www/build/storefront/storefront-516/lib/Cake/Event/CakeEventManager.php(243): SiteController->beforeFilter()
#3 /var/www/build/storefront/storefront-516/lib/Cake/Controller/Controller.php(682): CakeEventManager->dispatch()
#4 /var/www/build/storefront/storefront-516/lib/Cake/Routing/Dispatcher.php(189): Controller->startupProcess()
#5 /var/www/build/storefront/storefront-516/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#6 /var/www/build/storefront/storefront-516/app/webroot/index.php(114): Dispatcher->dispatch()
#7 {main}
2023-07-26 04:37:45 Error: [BadRequestException] Invalid Store
Request URL: /
Stack Trace:
#0 /var/www/build/storefront/storefront-516/app/Controller/AppController.php(76): AppController->checkStore()
#1 /var/www/build/storefront/storefront-516/app/Controller/SiteController.php(25): AppController->beforeFilter()
#2 /var/www/build/storefront/storefront-516/lib/Cake/Event/CakeEventManager.php(243): SiteController->beforeFilter()
#3 /var/www/build/storefront/storefront-516/lib/Cake/Controller/Controller.php(682): CakeEventManager->dispatch()
#4 /var/www/build/storefront/storefront-516/lib/Cake/Routing/Dispatcher.php(189): Controller->startupProcess()
#5 /var/www/build/storefront/storefront-516/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#6 /var/www/build/storefront/storefront-516/app/webroot/index.php(114): Dispatcher->dispatch()
#7 {main}
2023-08-04 01:43:07 Error: [PDOException] SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND Contact.contact_type = 1 AND (first_name ='' and last_name ='')' at line 6
Request URL: /ammo_read/listOrdersRetrieve
Stack Trace:
#0 /var/www/build-live/apipos/apipos-109/lib/Cake/Model/Datasource/DboSource.php(502): PDOStatement->execute()
#1 /var/www/build-live/apipos/apipos-109/lib/Cake/Model/Datasource/DboSource.php(468): DboSource->_execute()
#2 /var/www/build-live/apipos/apipos-109/lib/Cake/Model/Datasource/DboSource.php(715): DboSource->execute()
#3 /var/www/build-live/apipos/apipos-109/lib/Cake/Model/Datasource/DboSource.php(641): DboSource->fetchAll()
#4 /var/www/build-live/apipos/apipos-109/lib/Cake/Model/Model.php(3489): DboSource->query()
#5 /var/www/build-live/apipos/apipos-109/app/Model/Contact.php(831): Model->query()
#6 /var/www/build-live/apipos/apipos-109/app/Controller/AmmoReadyController.php(1304): Contact->checkDuplicate1()
#7 [internal function]: AmmoReadyController->listOrdersRetrieve()
#8 /var/www/build-live/apipos/apipos-109/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs()
#9 /var/www/build-live/apipos/apipos-109/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction()
#10 /var/www/build-live/apipos/apipos-109/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#11 /var/www/build-live/apipos/apipos-109/app/webroot/index.php(110): Dispatcher->dispatch()
#12 {main}
GET filebeat-8.8.0/_search
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 8,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": ".ds-filebeat-8.8.0-2023.08.08-000001",
"_id": "-9te04kBB_lD3cFyDIcI",
"_score": 1,
"_source": {
"@timestamp": "2023-08-08T04:18:22.328Z",
"input": {
"type": "filestream"
},
"host": {
"name": "hyperion.lan"
},
"agent": {
"name": "hyperion.lan",
"type": "filebeat",
"version": "8.8.0",
"ephemeral_id": "0fbe201e-58af-4405-8071-666a64b1acab",
"id": "769d262d-ef89-45be-a2d7-ccbbedd9fc19"
},
"ecs": {
"version": "8.0.0"
},
"log": {
"file": {
"path": "/Users/sbrown/workspace/sample-data/discuss/multi-line/cake-error.log"
},
"flags": [
"multiline"
],
"offset": 855
},
"message": """2023-07-26 04:35:45 Error: [BadRequestException] Invalid Store
Request URL: /
Stack Trace:
#0 /var/www/build/storefront/storefront-516/app/Controller/AppController.php(76): AppController->checkStore()
#1 /var/www/build/storefront/storefront-516/app/Controller/SiteController.php(25): AppController->beforeFilter()
#2 /var/www/build/storefront/storefront-516/lib/Cake/Event/CakeEventManager.php(243): SiteController->beforeFilter()
#3 /var/www/build/storefront/storefront-516/lib/Cake/Controller/Controller.php(682): CakeEventManager->dispatch()
#4 /var/www/build/storefront/storefront-516/lib/Cake/Routing/Dispatcher.php(189): Controller->startupProcess()
#5 /var/www/build/storefront/storefront-516/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#6 /var/www/build/storefront/storefront-516/app/webroot/index.php(114): Dispatcher->dispatch()
#7 {main}""",
"tags": [
"cake-error-log"
]
}
},
.......