|
|
|
@ -51,12 +51,28 @@ filebeat:
|
|
|
|
|
- logs_path: |
|
|
|
|
logs_path: "/var/log/containers/" |
|
|
|
|
output.logstash: |
|
|
|
|
hosts: ["logstash-loki:5044"] |
|
|
|
|
# TODO make vvv this depend on helm chart name |
|
|
|
|
hosts: ["loki-stack-logstash:5044"] |
|
|
|
|
|
|
|
|
|
logstash: |
|
|
|
|
enabled: true |
|
|
|
|
image: grafana/logstash-output-loki |
|
|
|
|
imageTag: 1.0.1 |
|
|
|
|
|
|
|
|
|
service: |
|
|
|
|
type: ClusterIP |
|
|
|
|
ports: |
|
|
|
|
- name: beats |
|
|
|
|
port: 5044 |
|
|
|
|
protocol: TCP |
|
|
|
|
targetPort: 5044 |
|
|
|
|
- name: http |
|
|
|
|
port: 8080 |
|
|
|
|
protocol: TCP |
|
|
|
|
targetPort: 8080 |
|
|
|
|
|
|
|
|
|
# readiness probe seems to be failing (connection refused to port 9600) |
|
|
|
|
|
|
|
|
|
filters: |
|
|
|
|
main: |- |
|
|
|
|
filter { |
|
|
|
@ -74,13 +90,16 @@ logstash:
|
|
|
|
|
remove_field => ["tags"] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# TODO drop high cardinality data (https://grafana.com/docs/loki/latest/clients/logstash) |
|
|
|
|
outputs: |
|
|
|
|
main: |- |
|
|
|
|
output { |
|
|
|
|
loki { |
|
|
|
|
url => "http://loki:3100/loki/api/v1/push" |
|
|
|
|
username => "test" |
|
|
|
|
password => "test" |
|
|
|
|
# TODO this url may be wrong |
|
|
|
|
url => "http://loki-stack:3100/loki/api/v1/push" |
|
|
|
|
#username => "test" |
|
|
|
|
#password => "test" |
|
|
|
|
} |
|
|
|
|
# stdout { codec => rubydebug } |
|
|
|
|
} |
|
|
|
|