2017-08-28 2 views
0

Ich habe ein Problem mit logstash wenn ich in eine Datei Druckprotokolle möchten.logstash Datei-Eingabe-Plugin-Konfiguration nicht funktioniert

Dies ist meine Ausgangskonfiguration

if "ERROR" in [log] 
{ 
    file 
    {  
    path => "/home/yasmine/Bureau/elk/tri.text" codec => line 
    { 
     format => "Log: %log 
    }"    
    } 
} 

Nach logstash läuft es zeigt mir dieses Fehler

An unexpected error occurred! {:error=>#<Errno::EEXIST: File exists... 

Antwort

0

Versuchen Sie folgendes:

if "ERROR" in [log] 
{ 
    file 
    {  
    path => "/home/yasmine/Bureau/elk/tri.text" 
    codec => line { format => "Log: %{log}"}    
    } 
} 
Verwandte Themen