记一次Logstash踩坑[WARN ][logstash.inputs.jdbc] tracking_column not found in dataset.

logstash version 6.5
[2019-01-09T18:04:05,020][WARN ][logstash.inputs.jdbc ] tracking_column not found in dataset. {:tracking_column=>"[ServiceUsage_T].[UsageBegin]"}
{ 2012 rufus-scheduler intercepted an error:
2012 job:
2012 Rufus::Scheduler::CronJob “* * * * *” {}
2012 error:
2012 2012
2012 TypeError
2012 can’t dup NilClass
2012 org/jruby/RubyKernel.java:1882:in dup' 2012 uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/date/format.rb:838:in_parse’
2012 uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/date.rb:1830:in parse' 2012 /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-jdbc-4.3.13/lib/logstash/plugin_mixins/jdbc/value_tracking.rb:87:inset_value’
2012 /home/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-jdbc-4.3.13/lib/logstash/plugin_mixins/jdbc/jdbc.rb:237:in execute_statement' 2012 /home/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-jdbc-4.3.13/lib/logstash/inputs/jdbc.rb:277:inexecute_query’
2012 /home/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-jdbc-4.3.13/lib/logstash/inputs/jdbc.rb:258:in block in run' 2012 /home/logstash/vendor/bundle/jruby/2.3.0/gems/rufus-scheduler-3.0.9/lib/rufus/scheduler/jobs.rb:234:indo_call’
2012 /home/logstash/vendor/bundle/jruby/2.3.0/gems/rufus-scheduler-3.0.9/lib/rufus/scheduler/jobs.rb:258:in do_trigger' 2012 /home/logstash/vendor/bundle/jruby/2.3.0/gems/rufus-scheduler-3.0.9/lib/rufus/scheduler/jobs.rb:300:inblock in start_work_thread’
2012 /home/logstash/vendor/bundle/jruby/2.3.0/gems/rufus-scheduler-3.0.9/lib/rufus/scheduler/jobs.rb:299:in block in start_work_thread' 2012 org/jruby/RubyKernel.java:1292:inloop’
2012 /home/logstash/vendor/bundle/jruby/2.3.0/gems/rufus-scheduler-3.0.9/lib/rufus/scheduler/jobs.rb:289:in `block in start_work_thread’
2012 tz:
2012 ENV[‘TZ’]:
2012 Time.now: 2019-01-09 18:04:05 +0800
2012 scheduler:
2012 object_id: 2002
2012 opts:
2012 {:max_work_threads=>1}
2012 frequency: 0.3
2012 scheduler_lock: #Rufus::Scheduler::NullLock:0x6557f16a
2012 trigger_lock: #Rufus::Scheduler::NullLock:0x4c040247
2012 uptime: 57.905395 (57s911)
2012 down?: false
2012 threads: 2
2012 thread: #Thread:0x393590f9
2012 thread_key: rufus_scheduler_2002
2012 work_threads: 1
2012 active: 1
2012 vacant: 0
2012 max_work_threads: 1
2012 mutexes: {}
2012 jobs: 1
2012 at_jobs: 0
2012 in_jobs: 0
2012 every_jobs: 0
2012 interval_jobs: 0
2012 cron_jobs: 1
2012 running_jobs: 1
2012 work_queue: 0
} 2012 .

由于没有把追踪的字段放在select 里面导致,运行conf配置文件出错,如果sql语句中重新定义了column,那么使用重新定义的列名称。

你可能感兴趣的:(ELK,Stack)