Configuration file

The Wazuh app includes a configuration file (located at /usr/share/kibana/plugins/wazuh/config.yml) where you can define custom values for several options. This section describes all the settings available in this file.

The configuration file shows the default values for all of the possible options. You can edit the file, uncomment any of them and apply the desired values.

Warning

Don’t forget to restart the Kibana service after applying changes to these settings.

The configuration file reference is organized by sections:

Basic options
Monitoring
Checks
Extensions
Advanced index options

Basic options

pattern

Default index pattern to use on the app. If there’s no valid index patterns on Elasticsearch, the app will automatically create one with the name indicated in this option.

Default value

wazuh-alerts-3.x-*

Allowed values

Any valid index pattern

timeout

Defines the maximum time the app will wait for an API response when making requests to it. It will be ignored if the value is set under 1500 milliseconds.

Default value

8000 (milliseconds)

Allowed values

Any number starting from 1500

ip.selector

Defines if the user is allowed to change the selected index pattern directly from the top menu bar.

Default value

true

Allowed values

true,false

ip.ignore

Disable certain index pattern names from being available in index pattern selector from the Wazuh app. An empty list (the default value) won’t ignore any valid index pattern.

Default value

[]

Allowed values

Array of strings. Eg: [“wazuh-archives-*”]

xpack.rbac.enabled

Enable or disable X-Pack RBAC security capabilities when using the app.

Default value

true

Allowed values

true,false

admin

Enable or disable administrator requests to the Wazuh API when using the app. This makes PUT, POST and DELETE requests available on the Dev tools tab.

Default value

true

Allowed values

true,false

Monitoring

wazuh.monitoring.enabled

Enable or disable the wazuh-monitoring index creation and/or visualization:

  • When the value is set to true, the app will show the Agents status visualization and will insert monitoring-related data.

  • When the value is set to false, the app won’t show the visualization and won’t insert monitoring-related data.

  • When the value is set to worker, the app will show the visualization, but won’t insert monitoring-related data.

Default value

true

Allowed values

true,false,worker

wazuh.monitoring.frequency

Define in seconds the frequency the app generates a new document on the wazuh-monitoring index.

Default value

3600 (seconds)

Allowed values

Any number starting from 60

Warning

Although the minimum value can be 60, we recommend adjusting it to at least 300 seconds to avoid overloading issues due to the excessive creation of documents into the index.

wazuh.monitoring.pattern

Default Wazuh monitoring index pattern to use for the app. This setting does not remove any existing patterns or templates, it just updates the app to add the new ones.

Default value

wazuh-monitoring-3.x-*

Allowed values

Any valid index pattern

Checks

checks.pattern

Enable or disable the index pattern health check when opening the app.

Default value

true

Allowed values

true,false

checks.template

Enable or disable the template health check when opening the app.

Default value

true

Allowed values

true,false

checks.api

Enable or disable the API health check when opening the app.

Default value

true

Allowed values

true,false

checks.setup

Enable or disable the setup health check when opening the app.

Default value

true

Allowed values

true,false

Extensions

Note

These options are only applied for newly inserted APIs on the Settings tab, not for the existing ones.

extensions.pci

Enable or disable the PCI DSS tab on Overview and Agents.

Default value

true

Allowed values

true,false

extensions.gdpr

Enable or disable the GDPR tab on Overview and Agents.

Default value

true

Allowed values

true,false

extensions.audit

Enable or disable the Audit tab on Overview and Agents.

Default value

true

Allowed values

true,false

extensions.oscap

Enable or disable the Open SCAP tab on Overview and Agents.

Default value

true

Allowed values

true,false

extensions.ciscat

Enable or disable the CIS-CAT tab on Overview and Agents.

Default value

false

Allowed values

true,false

extensions.aws

Enable or disable the Amazon (AWS) tab on Overview and Agents.

Default value

false

Allowed values

true,false

extensions.virustotal

Enable or disable the VirusTotal tab on Overview and Agents.

Default value

false

Allowed values

true,false

extensions.osquery

Enable or disable the Osquery tab on Overview and Agents.

Default value

false

Allowed values

true,false

Advanced index options

Warning

These options are only valid if they’re modified before starting the Kibana service for the very first time.

You can read more about configuring the shards and replicas in Elasticsearch tuning.

wazuh.shards

Define the number of shards to use for the wazuh index.

Default value

1

Allowed values

Any number starting from 1

wazuh.replicas

Define the number of replicas to use for the wazuh index.

Default value

1

Allowed values

Any number starting from 0

wazuh-version.shards

Define the number of shards to use for the wazuh-version index.

Default value

1

Allowed values

Any number starting from 1

wazuh-version.replicas

Define the number of replicas to use for the wazuh-version index.

Default value

1

Allowed values

Any number starting from 0

wazuh.monitoring.shards

Define the number of shards to use for the wazuh-monitoring-3.x-* indices.

Default value

5

Allowed values

Any number starting from 1

wazuh.monitoring.replicas

Define the number of replicas to use for the wazuh-monitoring-3.x-* indices.

Default value

1

Allowed values

Any number starting from 0