Issue Facing during Logstash startup


(PKD) #1

Hi All,

We are facing issue while logstash startup. We are trying with Sun JDK 7 and 8. Are there any additional steps required for startup ? We are using logstash 1.5.2 and 1.5.4 and 2.0.

Are there any additional steps required during the installation ?

Please help.

Regards

Class.java:-2:in forName0': java.lang.ExceptionInInitializerError from Class.java:190:inforName'
from Ruby.java:1263:in init' from Ruby.java:334:innewInstance'
from Main.java:258:in internalRun' from Main.java:217:inrun'
from Main.java:197:in main' Caused by: JceSecurity.java:86:in': java.lang.SecurityException: Can not initialize cryptographic mechanism
from Class.java:-2:in forName0' from Class.java:190:inforName'
from Ruby.java:1263:in init' from Ruby.java:334:innewInstance'
from Main.java:258:in internalRun' from Main.java:217:inrun'
from Main.java:197:in main' Caused by: JarVerifier.java:289:inverifyPolicySigned': java.lang.SecurityException: The jurisdiction policy files are not signed by a trusted signer!
from JceSecurity.java:316:in loadPolicies' from JceSecurity.java:261:insetupJurisdictionPolicies'
from JceSecurity.java:48:in access$000' from JceSecurity.java:78:inrun'
from AccessController.java:-2:in doPrivileged' from JceSecurity.java:76:in'
from Class.java:-2:in forName0' from Class.java:190:inforName'
from Ruby.java:1263:in init' from Ruby.java:334:innewInstance'
from Main.java:258:in internalRun' from Main.java:217:inrun'
from Main.java:197:in `main'


(Mark Walkom) #2

What OS are you on?

Can you share your config?


(PKD) #3

I have installed logstash on Cent-OS 6.6. Sun Java 1.7.

input {
  file {
    path => ["/var/log/varnish/varnish-access*.log"]
      type => "varnish"
      start_position => "end"
      stat_interval => 3600
  }
}

filter {
  if [type] == "varnish" {
    grok {
      match => [ "message", "\[%{HTTPDATE:request_date}\] \"%{WORD} %{URI:request_url} HTTP/%{NUMBER:httpversion}\" %{NUMBER:response_code:int} %{NUMBER:response_time:int}"]
    }
  }

    
  date {
    match => [ "request_date" , "dd/MMM/yyyy:HH:mm:ss Z" ]
  }

  mutate
  {
    remove_field => [ "request_date" ]
  }

}

output {
  elasticsearch_http { host => "test01" }
  stdout {
    codec => rubydebug
  }
}

(Amit Sehgal) #4

I have similar issue with sun jdk 8_45 on RHEL 6.x


(system) #5