Could not find or load main class org.logstash.Logstash


(Hanan) #1

Hi there,

I am newbie to Logstash and would need your help. I have JAVA version "1.8.0_191" and installed logstash zip file for windows "logstash-6.4.2", and have a simple config file as follows, but it always raises error "Error: Could not find or load main class org.logstash.Logstash". any idea what is wrong here?

''''
input {
file
{
path => "C:/users/acct/desktop/20184501.txt"
start_position => "beginning"
}
}

filter
{
#if [path] =~ "201845"
grok
{
match => [ "message", "(? .records was loaded into the temp table)"]
#match => [ "message", "(? Output Filename
)"]
match => [ "message", "^%{GREEDYDATA} (%{WORD:Output Filename}(.)?)$"
]
}
if "_grokparsefailure" in [tags]
{
drop{}
}
#if [path] =~ "Total counts for this file is"
#{
# mutate { add_tag => "[path]"}
#}
}
output {
file
{
path => "C:/users/acct/desktop/logstash-20184501.txt"
}
stdout { codec => json }
}
'''''

Blockquote


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.