Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
float
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
float
Commits
e7b18f20
Commit
e7b18f20
authored
5 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Rebase rsyslog-container changes
parent
a1806012
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/log-collector/tasks/main.yml
+0
-14
0 additions, 14 deletions
roles/log-collector/tasks/main.yml
services.yml.loki
+11
-19
11 additions, 19 deletions
services.yml.loki
with
11 additions
and
33 deletions
roles/log-collector/tasks/main.yml
+
0
−
14
View file @
e7b18f20
---
---
-
user
:
name
:
"
log-collector"
system
:
yes
home
:
"
/var/log/remote"
groups
:
[
"
log-collector-credentials"
]
# Example playbook using fail and when together
# Example playbook using fail and when together
-
fail
:
-
fail
:
msg
:
You cannot have enable_elasticsearch and enable_loki at the same time.
msg
:
You cannot have enable_elasticsearch and enable_loki at the same time.
...
@@ -19,14 +13,6 @@
...
@@ -19,14 +13,6 @@
-
include_tasks
:
loki.yml
-
include_tasks
:
loki.yml
when
:
enable_loki
when
:
enable_loki
# Setup the rsyslog-collector instance. Needs packages from
# stretch-backports, to support modern versions of Elasticsearch.
-
name
:
Install rsyslog-elasticsearch package from backports
apt
:
name
:
rsyslog-elasticsearch
default_release
:
"
{{
'stretch-backports'
if
float_debian_dist
==
'stretch'
else
''
}}"
state
:
present
-
name
:
Create the rsyslog-collector logs dir
-
name
:
Create the rsyslog-collector logs dir
file
:
file
:
path
:
"
/var/log/remote"
path
:
"
/var/log/remote"
...
...
This diff is collapsed.
Click to expand it.
services.yml.loki
+
11
−
19
View file @
e7b18f20
...
@@ -33,23 +33,7 @@ log-collector:
...
@@ -33,23 +33,7 @@ log-collector:
- job_name: rsyslog-collector
- job_name: rsyslog-collector
port: 9105
port: 9105
scheme: http
scheme: http
- job_name: elasticsearch
port: 9201
scheme: http
public_endpoints:
- name: logs
port: 5601
scheme: http
enable_sso_proxy: true
containers:
containers:
- name: kibana
image: registry.git.autistici.org/ai3/docker/kibana:master
port: 5061
volumes:
- /etc/kibana/kibana.yml: /etc/kibana/kibana.yml
- /var/lib/kibana: /var/lib/kibana
env:
BABEL_CACHE_PATH: "/var/lib/kibana/.babelcache.json"
- name: loki
- name: loki
image: grafana/loki:1.4.1
image: grafana/loki:1.4.1
ports:
ports:
...
@@ -59,8 +43,16 @@ log-collector:
...
@@ -59,8 +43,16 @@ log-collector:
- /etc/loki: /etc/loki
- /etc/loki: /etc/loki
- /var/lib/loki: /var/lib/loki
- /var/lib/loki: /var/lib/loki
#https://github.com/ricoberger/loki_exporter
#https://github.com/ricoberger/loki_exporter
systemd_services:
- name: rsyslog
- rsyslog-collector.service
image: registry.git.autistici.org/ai3/docker/rsyslog:master
ports:
- 6514
- 9105
volumes:
- /etc/rsyslog-collector.conf: /etc/rsyslog.conf
- /etc/rsyslog-collector-lognorm: /etc/rsyslog-collector-lognorm
- /var/spool/rsyslog-collector: /var/spool/rsyslog
- /var/log/remote: /var/log/remote
ports:
ports:
- 6514
- 6514
- 3100
- 3100
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment