Hi all, I am trying to create logstash pipeline to ingest data into elasticsearch but getting this error

[2022-01-27T17:02:19,895][ERROR][logstash.agent ] An exception happened when converging configuration {:exception=>LogStash::Error, :message=>"Don't know how to handle Java::JavaLang::IllegalStateException for PipelineAction::Create<main>"}
[2022-01-27T17:02:19,911][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<LogStash::Error: Don't know how to handle Java::JavaLang::IllegalStateException for PipelineAction::Create<main>>, :backtrace=>["org/logstash/execution/ConvergeResultExt.java:135:in create'", "org/logstash/execution/ConvergeResultExt.java:60:in add'", "D:/logstash-7.16.3/logstash-core/lib/logstash/agent.rb:396:in `block in converge_state'"]}
[2022-01-27T17:02:19,911][FATAL][org.logstash.Logstash ] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.20.1.jar:?]
at D_3a_.logstash_minus_7_dot_16_dot_3.lib.bootstrap.environment.(D:\logstash-7.16.3\lib\bootstrap\environment.rb:94) ~[?:?]

Here is my conf file

input {
file {
path => "D:/*.csv"
start_position => "beginning"
sincedb_path => "NULL"
}
}

filter {
csv {
seperator => ","
columns => ["Region","Country","Item Type","Sales Channel","Order Priority","Order Date","Order ID","Ship Date","Units Sold","Unit Price","Unit Cost","Total Revenue","Total Cost","Total Profit"]
}
}

output {
Elasticsearch {
hosts => "http://localhost:9200"
index => "sales-records"
}
stdout {}
}

Based on the path=> part this looks to be on a windows system.
However i believe you still have to use D:\*.csv

1 Like

I did that also .... Slash was corrected .... But still error is there

Forward slash is correct for Windows. sincedb_path should be NUL though. Try this.

file {
 path => "D:/*.csv"
 start_position => "beginning"
 sincedb_path => "NUL"
}
1 Like

It worked ... Thanks

1 Like

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