Issues
- Upgrade compatibility: Problems converting configLOGSTASH-1777Logstash Developers
- Issues with multiple mutate/gsub filters causing some events not to be indexedLOGSTASH-1491Resolved issue: LOGSTASH-1491Logstash Developers
- Add newline with gsubLOGSTASH-985Resolved issue: LOGSTASH-985Logstash Developers
3 of 3
Hi,
I wrote a config to process some logfiles using Logstash v1.1.13 as part of a Toolkit managed by my company.
To provide Windows support for the Toolkit it was upgraded and Logstash v1.2.2 was to be used in this Toolkit.
I have had some problems converting my config to be compatible with v1.2.2 and have reached a point where I get a Logstash error when running the config for all 4 different types of logfile I have.
The error I get from the -vvv mode of running Logstash v1.2.2 is:
Exception in thread "LogStash::Runner" Running csv filter {:event=>#<LogStash::Event:0x1172897f @data={"message"=>"\"Information\",\"DefaultQuartzScheduler_Worker-1\",\"09/15/13\",\"18:18:00\",,\"Task default.PROCESS ORDERS triggered.\"\r", "@timestamp"=>"2014-01-10T11:19:29.240Z", "@version"=>"1", "type"=>"schedulerlog", "tags"=>["schedulerlog-raw"], "host"=>"plimsoll.hursley.ibm.com", "path"=>"/home/tscla/logstash/input/scheduler.log"}, @cancelled=false>, :level=>:debug, :file=>"/opt/tscla/logstash/LogstashIntegrationToolkit_v1.1.0.1/lstoolkit/logstash-1.2.2-flatjar.jar!/logstash/filters/csv.rb", :line=>"47"}
org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `gsub' for #<Array:0x7e64f359>
at RUBY.buildMessageText(/opt/tscla/logstash/LogstashIntegrationToolkit_v1.1.0.1/lstoolkit/logstash/outputs/scala_custom_eif.rb:184)
at RUBY.receive(/opt/tscla/logstash/LogstashIntegrationToolkit_v1.1.0.1/lstoolkit/logstash/outputs/scala_custom_eif.rb:107)
at RUBY.handle(file:/opt/tscla/logstash/LogstashIntegrationToolkit_v1.1.0.1/lstoolkit/logstash-1.2.2-flatjar.jar!/logstash/outputs/base.rb:85)
at RUBY.initialize((eval):400)
at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271)
at RUBY.output(file:/opt/tscla/logstash/LogstashIntegrationToolkit_v1.1.0.1/lstoolkit/logstash-1.2.2-flatjar.jar!/logstash/pipeline.rb:254)
at RUBY.outputworker(file:/opt/tscla/logstash/LogstashIntegrationToolkit_v1.1.0.1/lstoolkit/logstash-1.2.2-flatjar.jar!/logstash/pipeline.rb:213)
at RUBY.start_outputs(file:/opt/tscla/logstash/LogstashIntegrationToolkit_v1.1.0.1/lstoolkit/logstash-1.2.2-flatjar.jar!/logstash/pipeline.rb:140)
This looks to me like a Logstash based error rather than an error from the Toolkit I use to run Logstash.
Can anyone suggest what this error message means?
I have no "ruby" code usage in the config, "gsub" is used only in the processing of 1 logfile type but this error appears for any of the 4 filetypes.
Many Thanks,
Nick