Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
linux:logging:filebeat [2019/06/25 08:08] – [Debugging] adilinux:logging:filebeat [2023/06/30 08:15] (aktuell) – [Konfiguration testen] adi
Zeile 11: Zeile 11:
 Nun kann man bereits das Template exportieren und hochladen. Da aber in der Konfiguration noch Einstellungen für das Template gemacht werden, sollte man das Template nach einer **fertigen Konfiguration** in Elasticsearch uploaden oder manuel exportieren und danach auch uploaden Nun kann man bereits das Template exportieren und hochladen. Da aber in der Konfiguration noch Einstellungen für das Template gemacht werden, sollte man das Template nach einer **fertigen Konfiguration** in Elasticsearch uploaden oder manuel exportieren und danach auch uploaden
 **Upload** **Upload**
-<code bash>filebeat setup --template -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["<HOSTNAME>:9200"]'</code>+<code bash>filebeat setup --index-management -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["<HOSTNAME>:9200"]'</code>
 oder **manueller Export** oder **manueller Export**
 Export: <code bash>filebeat export template > filebeat-<VERSION>.template.json</code> Export: <code bash>filebeat export template > filebeat-<VERSION>.template.json</code>
-Upload: <code bash>curl -XPUT -H 'Content-Type: application/json' http://<HOSTNAME>:9200/_template/filebeat-<VERSION> -d@filebeat-<VERSION>.template.json</code>+Upload: <code bash>curl -XPUT -u <USERNAME> -k -H 'Content-Type: application/json' https://<HOSTNAME>:9200/_template/filebeat-<VERSION> -d@filebeat-<VERSION>.template.json</code>
  
 ===== Konfigurieren ===== ===== Konfigurieren =====
Zeile 73: Zeile 73:
  
 ==== Konfiguration testen ==== ==== Konfiguration testen ====
-<code bash>filebeat test [config|putput] --path.config /etc/filebeat/ [--help]</code>+<code bash>filebeat test [config|output] --path.config /etc/filebeat/ [--help]</code>
  
 ==== Debugging ==== ==== Debugging ====
Zeile 81: Zeile 81:
 ODER ODER
 filebeat -e -d "processors,logstash"</code> filebeat -e -d "processors,logstash"</code>
 +
 +===== Daten erneut senden =====
 +  - filebeat beenden
 +  - ''rm -r /var/lib/filebeat/registry''
 +  - Daten in den Log-Dateien erneut bereitstellen (entweder aktuelle Log-Dateien mit alten überschreiben oder alte Log-Dateien mit anderem Dateinamen in ''filebeat.yml'' angeben)
 +  - filebeat starten
Navigation
Drucken/exportieren
QR-Code
QR-Code Filebeat (erstellt für aktuelle Seite)