refs #1719 removes filebeat execution

Luis Gerardo Romero Garcia 2025-03-24 12:20:08 +01:00
parent 3106b1010a
commit 84030f392d
1 changed files with 0 additions and 10 deletions

View File

@ -162,16 +162,6 @@ def setup_filebeat():
with open('/etc/hosts', 'a') as f:
f.write(f"{oglog_ip} oglog-os.mytld\n")
# Ejecutar Filebeat directamente sin systemd
subprocess.Popen([
"/usr/bin/filebeat",
"-c", "/etc/filebeat/filebeat.yml",
"--path.home", "/usr/share/filebeat",
"--path.config", "/etc/filebeat",
"--path.data", "/var/lib/filebeat",
"--path.logs", "/var/log/filebeat"
])
print("Filebeat instalado y ejecutándose correctamente.")
except subprocess.CalledProcessError as e: