Initial commit: add .gitignore and README

This commit is contained in:
defiQUG
2026-02-09 21:51:48 -08:00
commit d4ba3d45e5
174 changed files with 32756 additions and 0 deletions

12
filebeat/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM docker.elastic.co/beats/filebeat:7.14.1
ENV ENV_NAME dev
ENV IP_ADDRESS "127.0.0.1"
ENV REDIS_HOST localhost
ENV REDIS_PORT 6379
USER root
ADD ./filebeat.yml /usr/share/filebeat/filebeat.yml
RUN chown root:filebeat /usr/share/filebeat/filebeat.yml && chmod go-w /usr/share/filebeat/filebeat.yml
USER filebeat
CMD ["filebeat", "-c", "filebeat.yml"]

66
filebeat/filebeat.yml Normal file
View File

@@ -0,0 +1,66 @@
filebeat.modules:
# List of inputs to fetch data.
filebeat.inputs:
- paths:
- "/var/log/logstash/logstash-*.log"
type: log
enabled: true
document_type: logstash
fields_under_root: true
fields:
service_name: logstash
env_name: ${ENV_NAME}
ip_address: ${IP_ADDRESS}
- paths:
- "/var/log/besu/*.log"
type: log
enabled: true
document_type: besu
fields_under_root: true
fields:
service_name: besu
env_name: ${ENV_NAME}
ip_address: ${IP_ADDRESS}
- paths:
- "/var/log/quorum/*.log"
type: log
enabled: true
document_type: quorum
fields_under_root: true
fields:
service_name: quorum
env_name: ${ENV_NAME}
ip_address: ${IP_ADDRESS}
- paths:
- "/var/log/tessera/*.log"
type: log
enabled: true
document_type: tessera
fields_under_root: true
fields:
service_name: tessera
env_name: ${ENV_NAME}
ip_address: ${IP_ADDRESS}
output.redis:
enabled: true
hosts: ["${REDIS_HOST}:${REDIS_PORT}"]
key: filebeat
logging:
level: error
metrics.enabled: false
to_files: false
json: true
files:
path: /var/log/filebeat
name: filebeat-all.log
keepfiles: 0
#rotateonstartup: true