LANGUAGE/!$%!% ERROR NOTE
[Logstash] Scheduling logstash pipeline from postgresql to elasticsearch. ERROR: /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/rufus-scheduler-3.0.9/lib/rufus/scheduler/cronline.rb:77: warning: constant ::Fixnum is deprecated
forgiveall
2019. 12. 23. 14:05
Logstash
1. Error - 오류
Scheduling logstash pipeline from postgresql to elasticsearch. ERROR: /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/rufus-scheduler-3.0.9/lib/rufus/scheduler/cronline.rb:77: warning: constant ::Fixnum is deprecated
환경
- Logstash 7.3.1
- ElasticSearch 7.3.1
2. Problem - 문제
schedule
을 설정할때 Cron표현식 뒤에 Timezone
설정을 하지 않아서 그렇다.
3. Solved - 해결
Cron설정 뒤쪽에 Timezone 설정을 같이 넣어줘야 한다.
logstash-myapp.conf
schedule => "0 7 * * * America/Chicago"
OR
schedule => "5 * * * * Asia/Seoul"
4. Reference - 참고
- https://discuss.elastic.co/t/scheduling-logstash-pipeline-from-postgresql-to-elasticsearch-error-usr-share-logstash-vendor-bundle-jruby-2-5-0-gems-rufus-scheduler-3-0-9-lib-rufus-scheduler-cronline-rb-warning-constant-fixnum-is-deprecated/186878
- https://www.google.com/search?ei=VnaMXeilI73LmAW4jqHQDQ&q=timezone+Asia%2FSeoul&oq=timezone+Asia%2FSeoul&gs_l=psy-ab.3..0j0i30j0i5i30l8.17567773.17569109..17700320...0.0..0.108.405.1j3......0....1..gws-wiz.......0i13j0i13i30j0i13i5i30.StDCZtIggUY&ved=0ahUKEwjoqMrFiO7kAhW9JaYKHThHCNoQ4dUDCAs&uact=5