diff --git a/SUMMARY.md b/SUMMARY.md index 128ba119..e75c127b 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -117,6 +117,7 @@ * [stdout](filter/stdout.md) * [Parser Plugins](parser/README.md) * [regexp](parser/regexp.md) + * [apache](parser/apache.md) * [apache2](parser/apache2.md) * [apache\_error](parser/apache_error.md) * [nginx](parser/nginx.md) diff --git a/configuration/parse-section.md b/configuration/parse-section.md index 6790dbb3..5a27ac36 100644 --- a/configuration/parse-section.md +++ b/configuration/parse-section.md @@ -46,6 +46,7 @@ The `@type` parameter specifies the type of the parser plugin. Here's the list of built-in parser plugins: * [`regexp`](../parser/regexp.md) +* [`apache`](../parser/apache.md) * [`apache2`](../parser/apache2.md) * [`apache_error`](../parser/apache_error.md) * [`nginx`](../parser/nginx.md) diff --git a/parser/README.md b/parser/README.md index 8f634718..c8dc17c2 100644 --- a/parser/README.md +++ b/parser/README.md @@ -53,6 +53,7 @@ this case, several options are available to allow read access: ## List of Built-in Parsers * [`regexp`](regexp.md) +* [`apache`](apache.md) * [`apache2`](apache2.md) * [`apache_error`](apache_error.md) * [`nginx`](nginx.md) diff --git a/parser/apache.md b/parser/apache.md new file mode 100644 index 00000000..55321873 --- /dev/null +++ b/parser/apache.md @@ -0,0 +1,54 @@ +# apache + +The `apache` parser plugin parses the default Apache logs \(Common Log Format with the optional referer and user-agent fields\). + +## Parameters + +See [Parse Section Configurations](../configuration/parse-section.md). + +## Regexp Patterns + +Here is the regexp and time format patterns of this plugin: + +```text +expression /^(?[^ ]*) [^ ]* (?[^ ]*) \[(?