Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added FILEBEAT_METRICS_ENABLED env var #482

Open
wants to merge 1 commit into
base: 4.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Default values are included when available.
API_USERNAME="wazuh" # Wazuh API username
API_PASSWORD="wazuh" # Wazuh API password - Must comply with requirements
# (8+ length, uppercase, lowercase, specials chars)

FILEBEAT_METRICS_ENABLED=true # Whether or not filebeat metrics should be enabled
ELASTICSEARCH_URL=https://elasticsearch:9200 # Elasticsearch URL
ELASTIC_USERNAME=admin # Elasticsearch Username
ELASTIC_PASSWORD=admin # Elasticsearch Password
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
- ELASTIC_USERNAME=admin
- ELASTIC_PASSWORD=admin
- FILEBEAT_SSL_VERIFICATION_MODE=none
- FILEBEAT_METRICS_ENABLED=true
volumes:
- ossec_api_configuration:/var/ossec/api/configuration
- ossec_etc:/var/ossec/etc
Expand Down
5 changes: 5 additions & 0 deletions wazuh-odfe/config/etc/cont-init.d/1-config-filebeat
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ if [ "$ELASTICSEARCH_URL" != "" ]; then
sed -i "s|hosts:.*|hosts: ['$ELASTICSEARCH_URL']|g" /etc/filebeat/filebeat.yml
fi

if [ "$FILEBEAT_METRICS_ENABLED" != "" ]; then
>&2 echo "Configuring metrics."
sed -i "s|logging.metrics.enabled:.*|logging.metrics.enabled: '$METRICS_ENABLED'|g" /etc/filebeat/filebeat.yml
fi

# Configure filebeat.yml security settings

if [ "$ELASTIC_USERNAME" != "" ]; then
Expand Down
1 change: 1 addition & 0 deletions wazuh-odfe/config/filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ setup.template.json.path: '/etc/filebeat/wazuh-template.json'
setup.template.json.name: 'wazuh'
setup.template.overwrite: true
setup.ilm.enabled: false
logging.metrics.enabled: true
output.elasticsearch:
hosts: ['https://elasticsearch:9200']
#username:
Expand Down