I am trying to load csv file using logstash in windows 7 machine. My elastic search and kibana are running. I am getting below error. Please help me in resolving this error.
Error:
Error: Could not find or load main class ;C:\Users\pkinjar\Desktop\Elasticsearch
\Software\Logstash\logstash-6.2.3\logstash-core\lib\jars\animal-sniffer-annotati
ons-1.14.jar;C:\Users\pkinjar\Desktop\Elasticsearch\Software\Logstash\logstash-6
.2.3\logstash-core\lib\jars\commons-compiler-3.0.8.jar;C:\Users\pkinjar\Desktop
Elasticsearch\Software\Logstash\logstash-6.2.3\logstash-core\lib\jars\error_pron
e_annotations-2.0.18.jar;C:\Users\pkinjar\Desktop\Elasticsearch\Software\Logstas
h\logstash-6.2.3\logstash-core\lib\jars\google-java-format-1.5.jar;C:\Users\pkin
jar\Desktop\Elasticsearch\Software\Logstash\logstash-6.2.3\logstash-core\lib\jar
s\guava-22.0.jar;C:\Users\pkinjar\Desktop\Elasticsearch\Software\Logstash\logsta
sh-6.2.3\logstash-core\lib\jars\j2objc-annotations-1.1.jar;C:\Users\pkinjar\Desk
top\Elasticsearch\Software\Logstash\logstash-6.2.3\logstash-core\lib\jars\jackso
n-annotations-2.9.1.jar;C:\Users\pkinjar\Desktop\Elasticsearch\Software\Logstash
\logstash-6.2.3\logstash-core\lib\jars\jackson-core-2.9.1.jar;C:\Users\pkinjar\D
esktop\Elasticsearch\Software\Logstash\logstash-6.2.3\logstash-core\lib\jars\jac
kson-databind-2.9.1.jar;C:\Users\pkinjar\Desktop\Elasticsearch\Software\Logstash
\logstash-6.2.3\logstash-core\lib\jars\jackson-dataformat-cbor-2.9.1.jar;C:\User
s\pkinjar\Desktop\Elasticsearch\Software\Logstash\logstash-6.2.3\logstash-core\l
ib\jars\janino-3.0.8.jar;C:\Users\pkinjar\Desktop\Elasticsearch\Software\Logstas
h\logstash-6.2.3\logstash-core\lib\jars\javac-shaded-9-dev-r4023-3.jar;C:\Users
pkinjar\Desktop\Elasticsearch\Software\Logstash\logstash-6.2.3\logstash-core\lib
\jars\jruby-complete-9.1.13.0.jar;C:\Users\pkinjar\Desktop\Elasticsearch\Softwar
e\Logstash\logstash-6.2.3\logstash-core\lib\jars\jsr305-1.3.9.jar;C:\Users\pkinj
ar\Desktop\Elasticsearch\Software\Logstash\logstash-6.2.3\logstash-core\lib\jars
\log4j-api-2.9.1.jar;C:\Users\pkinjar\Desktop\Elasticsearch\Software\Logstash\lo
gstash-6.2.3\logstash-core\lib\jars\log4j-core-2.9.1.jar;C:\Users\pkinjar\Deskto
p\Elasticsearch\Software\Logstash\logstash-6.2.3\logstash-core\lib\jars\log4j-sl
f4j-impl-2.9.1.jar;C:\Users\pkinjar\Desktop\Elasticsearch\Software\Logstash\logs
tash-6.2.3\logstash-core\lib\jars\logstash-core.jar;C:\Users\pkinjar\Desktop\Ela
sticsearch\Software\Logstash\logstash-6.2.3\logstash-core\lib\jars\slf4j-api-1.7
.25.jar
My Config file:
input{
file {
path => "C:\Users\pkinjar\Desktop\Elasticsearch\Data\InfaWflowRunDeatails.csv"
start_position => "beginning"
}
}
filter{
csv{
seperator => ","
columns => ["SUBJECT_ID", "WORKFLOW_ID", "WORKFLOW_RUN_ID", "WORKFLOW_NAME", "SERVER_ID", "SERVER_NAME", "START_TIME", "END_TIME", "LOG_FILE", "RUN_ERR_CODE", "RUN_ERR_MSG", "RUN_STATUS_CODE", "USER_NAME", "RUN_TYPE", "VERSION_NUMBER", "SUBJECT_AREA" ]
}
mutate{convert => ["SUBJECT_ID","integer"]}
mutate{convert => ["WORKFLOW_ID","integer"]}
mutate{convert => ["WORKFLOW_RUN_ID","integer"]}
mutate{convert => ["SERVER_ID","integer"]}
mutate{convert => ["RUN_ERR_CODE","integer"]}
mutate{convert => ["RUN_STATUS_CODE","integer"]}
mutate{convert => ["RUN_TYPE","integer"]}
mutate{convert => ["VERSION_NUMBER","integer"]}
}
output {
elasticsearch {
host => "localhost"
index => "infawflowdetails"
document_type => "executiondetails"
}
stdout{}
}