Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Add Journalbeat docker image #58

Merged
merged 4 commits into from
Nov 27, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions beats.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
auditbeat
filebeat
heartbeat
journalbeat
metricbeat
packetbeat
11 changes: 11 additions & 0 deletions build/journalbeat/config/journalbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
journalbeat.inputs:
- paths: [/mnt/journal]
jsoriano marked this conversation as resolved.
Show resolved Hide resolved

processors:
- add_host_metadata: ~
- add_cloud_metadata: ~

ninaspitfire marked this conversation as resolved.
Show resolved Hide resolved
output.elasticsearch:
hosts: ['elasticsearch:9200']
username: elastic
password: changeme
6 changes: 6 additions & 0 deletions templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ services:
- NET_RAW
- NET_ADMIN
{%- endif %}

{% if beat == 'journalbeat' %}
volumes:
- /etc/machine-id:/etc/machine-id
- /etc/hostname:/etc/hostname:ro
kvch marked this conversation as resolved.
Show resolved Hide resolved
{%- endif %}
{% endfor %}