2013-05-06 1 views
7

Je suis confronté à des exceptions lorsque j'essaie de démarrer Logstash avec l'interface Web, même si j'ai suivi toutes les étapes au official tutorial. Tout d'abord, j'ai essayé logstash-1.1.10-flatjar.jar, il n'a même pas commencé aussi. Puis j'ai trouvé this issue alors j'ai téléchargé logstash-1.1.11.dev-flatjar.jar comme il est conseillé. Maintenant, il ne donne aucune erreur quand je l'initialise. Mais quand je trouver mon navigateur pour myserver:9292 je vois des erreurs sur les deux consoles et web ui comme ceux-ci:L'interface utilisateur Web de Logstash ne démarre pas

Errno::ENOENT: No such file or directory - file:/home/zimtest/Downloads/logstash-1.1.11.dev-flatjar.jar!/logstash/web/views/search/results.haml 
    org/jruby/RubyFile.java:333:in `initialize' 
    org/jruby/RubyIO.java:1179:in `open' 
    jar:file:/home/zimtest/Downloads/logstash-1.1.11.dev-flatjar.jar!/tilt/template.rb:91:in `read_template_file' 

Web UI Errors

J'utilise la configuration de tutoriel officiel; voici mon fichier indexer.conf:

input { 
    redis { 
    host => "127.0.0.1" 
    type => "redis-input" 
    # these settings should match the output of the agent 
    data_type => "list" 
    key => "logstash" 

    # We use json_event here since the sender is a logstash agent 
    format => "json_event" 
    } 
} 

output { 
    stdout { debug => true debug_format => "json"} 

    elasticsearch { 
    host => "127.0.0.1" 
    } 
} 

Répondre

9

je traitais avec la même question.

J'ai ouvert le fichier jar et j'ai trouvé le dossier de vues enfoui et un dossier supplémentaire plus profond que ce à quoi nous nous attendions. Devrait travailler assez longtemps jusqu'à ce qu'ils réparent dans la prochaine version.

solution rapide qui a fonctionné pour moi:

#extract folder 
jar xfv logstash-1.1.11.dev-flatjar.jar logstash/web/views 

#move files around 
cp -r logstash/web/views/views/ logstash/web/ 
rm -rf logstash/web/views/views 

# push files in jar 
jar uvf logstash-1.1.11.dev-flatjar.jar logstash/web/views/ 
+0

grâce @Nathan pour votre solution .. a travaillé pour moi aussi; mais j'espère qu'ils vont corriger ce bug dans les prochaines versions. – talha06

+0

On dirait qu'ils l'ont fait https://logstash.jira.com/browse/LOGSTASH-1015?focusedCommentId=17142&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17142 – Nathan

+3

Considérant l'utilisation de logstash/élastique pour traiter les logs web de SO, problème avec le tutoriel de logstash, répondez SO :-P –