Skip to content
GitLab
Explore
Sign in
Register
shore
beats-docker
Compare revisions
0ab9065fcd1463cdfa5e95d17638b5df54965456 to 4c8d6c0f191dd644026817f9c6f41c0edafabee3
Commits on Source (2)
Decode JSON logs.
· 2a11f9f2
nimrod
authored
May 16, 2021
2a11f9f2
Set the hostname.
· 4c8d6c0f
nimrod
authored
May 16, 2021
4c8d6c0f
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
4c8d6c0f
...
...
@@ -47,13 +47,19 @@ run-ns4:
extends
:
.compose-run
stage
:
deploy
tags
:
[
ns4.shore.co.il
]
variables
:
HOSTNAME
:
ns4
run-host01
:
extends
:
.compose-run
stage
:
deploy
tags
:
[
host01.shore.co.il
]
variables
:
HOSTNAME
:
host01
run-kodi
:
extends
:
.compose-run
stage
:
deploy
tags
:
[
kodi.shore.co.il
]
variables
:
HOSTNAME
:
kodi
docker-compose.yml
View file @
4c8d6c0f
...
...
@@ -4,11 +4,12 @@ services:
filebeat
:
build
:
context
:
filebeat
domainname
:
&domainname
"
${HOSTNAME}.shore.co.il"
hostname
:
&hostname
"
${HOSTNAME}"
image
:
registry.shore.co.il/filebeat
restart
:
always
user
:
root
volumes
:
-
/etc/hostname:/etc/hostname:ro
-
filebeat:/usr/share/filebeat/data/
-
/var/lib/docker/containers:/var/lib/docker/containers:ro
-
/var/run/docker.sock:/var/run/docker.sock:ro
...
...
@@ -16,11 +17,12 @@ services:
journalbeat
:
build
:
context
:
journalbeat
domainname
:
*domainname
hostname
:
*hostname
image
:
registry.shore.co.il/journalbeat
restart
:
always
user
:
root
volumes
:
-
/etc/hostname:/etc/hostname:ro
-
journalbeat:/usr/share/journalbeat/data/
-
/var/log/journal:/var/log/journal
-
/etc/machine-id:/etc/machine-id:ro
...
...
@@ -34,7 +36,6 @@ services:
restart
:
always
user
:
root
volumes
:
-
/etc/hostname:/etc/hostname:ro
-
metricbeat:/usr/share/metricbeat/data/
-
/var/run/docker.sock:/var/run/docker.sock:ro
-
/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro
...
...
@@ -54,7 +55,6 @@ services:
network_mode
:
host
restart
:
always
volumes
:
-
/etc/hostname:/etc/hostname:ro
-
packetbeat:/usr/share/packetbeat/data/
volumes
:
...
...
filebeat/filebeat.yml
View file @
4c8d6c0f
...
...
@@ -13,6 +13,10 @@ http:
processors
:
-
add_host_metadata
:
~
-
add_docker_metadata
:
~
-
decode_json_fields
:
fields
:
-
message
add_error_key
:
true
filebeat.inputs
:
-
type
:
container
...
...
journalbeat/journalbeat.yml
View file @
4c8d6c0f
...
...
@@ -10,9 +10,13 @@ logging:
http
:
enabled
:
true
processors
:
-
add_host_metadata
:
~
-
decode_json_fields
:
fields
:
-
message
add_error_key
:
true
journalbeat.inputs
:
-
paths
:
[]
seek
:
cursor
processors
:
-
add_host_metadata
:
~