Beats: [Filebeat] ActiveMQ module

Created on 25 Nov 2019  路  5Comments  路  Source: elastic/beats

Introduction

As the Metricbeat for ActiveMQ has been delivered in https://github.com/elastic/beats/issues/14510 , a corresponding filebeat should be also implemented.

Logging is enabled using Log4j appenders. Default logging configuration:

# Console appender
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%5p | %m%n
log4j.appender.console.threshold=INFO

# File appender
log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.file=${activemq.data}/activemq.log
log4j.appender.logfile.maxFileSize=1024KB
log4j.appender.logfile.maxBackupIndex=5
log4j.appender.logfile.append=true
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d | %-5p | %m | %c | %t%n

(source: https://github.com/apache/activemq/blob/7d14ddb0d15c9221f35318661c98f4993b94e3bd/activemq-all/src/main/resources/log4j.properties)

Modules

For a fileset to go GA, the following criterias should be met:

  • [x] Supported versions are documented
  • [x] Supported operating systems are documented (if applicable)
  • [x] Integration tests exist
    *[ ] System tests exist
  • [x] Automated checks that all fields are documented
  • [x] Documentation
  • [x] Fields follow ECS and naming conventions
  • [x] Dashboards exists (if applicable)
  • [x] Kibana Home Tutorial (if applicable)

    • Open PR against Kibana repo with tutorial. Examples can be found here.

Filebeat module

  • [x] Test log files exist for the grok patterns
  • [x] Generated output for at least 1 log file exists
Filebeat Integrations enhancement module

All 5 comments

_To be also addressed in the PR:_

Apart from the general application logging, ActiveMQ provides also audit logs. Briefly described here: https://activemq.apache.org/audit-logging

Audit logger appender:

log4j.appender.audit=org.apache.log4j.RollingFileAppender
log4j.appender.audit.file=${activemq.data}/audit.log
log4j.appender.audit.maxFileSize=1024KB
log4j.appender.audit.maxBackupIndex=5
log4j.appender.audit.append=true
log4j.appender.audit.layout=org.apache.log4j.PatternLayout
log4j.appender.audit.layout.ConversionPattern=%-5p | %m | %t%n

I updated the description to put back the Modules section, it affects both to Metricbeat and Filebeat modules

Status table has been updated. I'm proceeding with dashboards.

All action items have been cleared. I will proceed with backports.

All backports have been merged. Resolving.

Was this page helpful?
0 / 5 - 0 ratings