-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migration of apache2 error fileset to ECS (#8963)
* Migration of apache2 error fileset to ECS Fields migrated: * apache.error.level -> log.level * apache.error.message -> message * apache.error.pid -> process.pid * apache.error.tid -> process.tid * apache.error.client -> source.ip Other changes * Changelog updated * Migration file updated * Field alias added for the old fields * Test outputs updated * Fix source.ip to be IP only. Before had a HOSTORIP pattern. Note: The ECS fields used were on purpose only put on the module level and are put into filebeat or libbeat when they are used in more then 1 place.
- Loading branch information
Showing
23 changed files
with
170 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 14 additions & 14 deletions
28
filebeat/module/apache2/error/test/test.log-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
[ | ||
{ | ||
"@timestamp": "2016-12-26T16:22:08.000Z", | ||
"apache2.error.client": "192.168.33.1", | ||
"apache2.error.level": "error", | ||
"apache2.error.message": "File does not exist: /var/www/favicon.ico", | ||
"event.dataset": "error", | ||
"event.module": "apache2", | ||
"input.type": "log", | ||
"log.offset": 0 | ||
"log.level": "error", | ||
"log.offset": 0, | ||
"message": "File does not exist: /var/www/favicon.ico", | ||
"source.address": "192.168.33.1" | ||
}, | ||
{ | ||
"@timestamp": "2016-12-26T16:15:55.103Z", | ||
"apache2.error.level": "notice", | ||
"apache2.error.message": "AH00094: Command line: '/usr/local/Cellar/httpd24/2.4.23_2/bin/httpd'", | ||
"apache2.error.module": "core", | ||
"apache2.error.pid": "11379", | ||
"event.dataset": "error", | ||
"event.module": "apache2", | ||
"input.type": "log", | ||
"log.offset": 99 | ||
"log.level": "notice", | ||
"log.offset": 99, | ||
"message": "AH00094: Command line: '/usr/local/Cellar/httpd24/2.4.23_2/bin/httpd'", | ||
"process.pid": 11379 | ||
}, | ||
{ | ||
"@timestamp": "2011-09-09T10:42:29.902Z", | ||
"apache2.error.client": "72.15.99.187", | ||
"apache2.error.level": "error", | ||
"apache2.error.message": "File does not exist: /usr/local/apache2/htdocs/favicon.ico", | ||
"apache2.error.module": "core", | ||
"apache2.error.pid": "35708", | ||
"apache2.error.tid": "4328636416", | ||
"event.dataset": "error", | ||
"event.module": "apache2", | ||
"input.type": "log", | ||
"log.offset": 229 | ||
"log.level": "error", | ||
"log.offset": 229, | ||
"message": "File does not exist: /usr/local/apache2/htdocs/favicon.ico", | ||
"process.pid": 35708, | ||
"process.thread.id": 4328636416, | ||
"source.address": "72.15.99.187" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.