Ich stehe vor diesem Problem, da ich alle Indizes gelöscht habe. Dafür habe ich ausgeführt, um den folgenden Befehlfilebeat sendet Protokoll direkt an die elastische Suche nicht zu logstash
curl -XDELETE 'http://localhost:9200/*'
filebeat.yml
filebeat:
prospectors:
-
paths:
- /var/log/syslog
- input_type : log
document_type: syslog
registry_file: /var/lib/filebeat/registry
output:
logstash:
hosts: ["127.0.0.1:5044"]
bulk_max_size: 1024
shipper:
logging:
files:
rotateeverybytes: 10485760 # = 10MB
und logstash Konfigurationsdateien Eingabe Config
input {
beats {
port => 5044
}
}
und Ausgangs Config
output {
elasticsearch {
hosts => ["localhost:9200"]
sniffing => true
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
Problem ist, dass Protokolle sind nicht durch logstash kommend, kommen diese direkt, weil ich kein neues Feld in kibana hinzugefügt habe und im Falle eines APCH-Zugriffsprotokolls gibt es nur log als Wert vom Typ.
In der Zukunft, bitte schneiden Sie alle diese Kommentare aus Ihrer Konfig –