-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dashboard test loading for auditbeat (#5938)
* Add dashboard test loading for auditbeat In combination with adding the dashboard loading a libbeat.yml.j2 was created so all beats can share the common config options and we do not have to add each option for each beat. So far this is applied to metricbeat, auditbeat and filebeat. Other beats will follow in a follow up PR. * Enable system tests and environment. Change testing. * add kibana environment * fix template variables * fix filebeat tests with console
- Loading branch information
1 parent
4aebadc
commit 3f1e877
Showing
8 changed files
with
137 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
#================================ General ===================================== | ||
|
||
# The name of the shipper that publishes the network data. It can be used to group | ||
# all the transactions sent by a single shipper in the web interface. | ||
# If this options is not defined, the hostname is used. | ||
name: {{shipper_name}} | ||
|
||
# The tags of the shipper are included in their own field with each | ||
# transaction published. Tags make it easy to group servers by different | ||
# logical properties. | ||
tags: [ | ||
{%- if agent_tags -%} | ||
{%- for tag in agent_tags -%} | ||
"{{ tag }}" | ||
{%- if not loop.last %}, {% endif -%} | ||
{%- endfor -%} | ||
{%- endif -%} | ||
] | ||
|
||
{% if setup_template_name %} | ||
setup.template.name: "{{setup_template_name}}" | ||
setup.template.pattern: "{{setup_template_pattern}}" | ||
{%- endif %} | ||
|
||
#================================ Processors ===================================== | ||
|
||
{%- if processors %} | ||
processors: | ||
{%- for processor in processors %} | ||
{%- for name, settings in processor.items() %} | ||
- {{name}}: | ||
{%- if settings %} | ||
{%- for k, v in settings.items() %} | ||
{{k}}: | ||
{{v | default([])}} | ||
{%- endfor %} | ||
{%- endif %} | ||
{%- endfor %} | ||
{%- endfor %} | ||
|
||
{%- endif %} | ||
|
||
#================================ Queue ===================================== | ||
|
||
queue.mem: | ||
events: 4096 | ||
flush.min_events: {{ flush_min_events|default(8) }} | ||
flush.timeout: 0.1s | ||
|
||
{% if kibana -%} | ||
setup.kibana.host: "{{ kibana.host }}" | ||
{%- endif %} | ||
|
||
#================================ Outputs ===================================== | ||
|
||
# Configure what outputs to use when sending the data collected by the beat. | ||
# Multiple outputs may be used. | ||
|
||
{% if elasticsearch -%} | ||
output: | ||
elasticsearch: | ||
hosts: ["{{ elasticsearch.host }}"] | ||
{% if elasticsearch.pipeline %} | ||
pipeline: {{elasticsearch.pipeline}} | ||
{% endif %} | ||
{% if elasticsearch.index %} | ||
index: {{elasticsearch.index}} | ||
{% endif %} | ||
{%- endif %} | ||
|
||
{% if logstash %} | ||
output.logstash: | ||
hosts: ["{{ logstash.host }}"] | ||
{%- endif %} | ||
|
||
{% if not (console or elasticsearch or logstash) -%} | ||
output.file: | ||
path: {{ output_file_path|default(beat.working_dir + "/output") }} | ||
filename: "{{ output_file_filename|default(beat.beat_name) }}" | ||
rotate_every_kb: {{ rotate_every_kb | default(1000) }} | ||
#number_of_files: 7 | ||
{%- endif %} | ||
|
||
{% if path_data %} | ||
#================================ Paths ===================================== | ||
path: | ||
data: {{path_data}} | ||
{%endif%} | ||
|
||
{% if keystore_path %} | ||
#================================ keystore ===================================== | ||
keystore.path: {{keystore_path}} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters