...
...
...
...
...
...
...
To obtain Log Relay and to configure your account for remote log collection, you must have the following AMP permissions added to your account:
...
Topics Discussed
Table of Contents | ||||
---|---|---|---|---|
|
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
You can use this document to send Apache logs to Armor's Security Information & Event Management (SIEM).
Configure Your Apache Service
Configuring Apache services uses the Command Line Interface (CLI) feature. For more information, see Security Service CLI Commands.
The following arguments are possible parameters for the Logging CLI feature. This allows customers to manage filebeat modules on Virtual Machines.
Command Usage:
Code Block |
---|
...
armor logging apache-enable
armor logging apache-disable
armor logging apache-add-access-paths <required paths needs to add here>
armor logging apache-remove-access-paths <required paths needs to add here>
armor logging apache-add-error-paths <required paths needs to add here>
armor logging apache-remove-error-paths <required paths needs to add here>
armor logging apache-sync-config
armor logging apache-describe-config |
Additional Information
Apache will need configuration for a specific log format. This is normally done in the httpd.conf file. Documentation for the log_config_module can be found at http://httpd.apache.org/docs/current/mod/mod_log_config.html
Configure Log Format Directive Apache Docs
Without Reverse Proxy
Code Block |
---|
...
LogFormat "httpd: %h %A %l %u %t \"%r\" %>s %p %b \"%{Referer}i\" \"%{User-agent}i\"" armor_noproxy_202004 |
With Reverse Proxy
Code Block |
---|
...
LogFormat "httpd: %a %A %l %u %t \"%r\" %>s %p %b \"%{Referer}i\" \"%{User-agent}i\"" armor_proxy_202004 |
Configure Custom Log Directive Apache Docs
The filename supplied to CustomLog will need to be added as a file path with the Security Service CLI Commands.
Code Block |
---|
...
...
CustomLog "logs/access_log" armor_noproxy_202004 |
Note | |||||||
---|---|---|---|---|---|---|---|
Configure Custom Log Directive will create a filename that is then used with the command:
|
Full Example
Code Block |
---|
...
<IfModule log_config_module>
LogFormat "httpd: %a %A %l %u %t \"%r\" %>s %p %b \"%{Referer}i\" \"%{User-agent}i\"" armor_noproxy_202004
CustomLog "logs/access_log" armor_noproxy_202004
</IfModule> |
Info | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TroubleshootingVerify that logs are formatted correctly, similar to the following example:
Missing Logs If Apache logs locally do not match what's in Armor Log Search, verify the file size of the logs ingested. Filebeat has a maximum file size of 10MB. Anything over 10MB will require updates to the Filebeat Apache configuration, with the max-bytes property set to the desired value. |
...
Topics Discussed
...