Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

determine_start_position barfs with a number #38

Closed
tedder opened this issue Aug 31, 2017 · 1 comment
Closed

determine_start_position barfs with a number #38

tedder opened this issue Aug 31, 2017 · 1 comment

Comments

@tedder
Copy link

tedder commented Aug 31, 2017

I tried using this for a start position. Note there are no quotes on the number:

  # start one hour ago
  start_position => 3600

Here's the error/fail:

Error: undefined method `-' for "1504201621152":String
Exception: NoMethodError
Stack: /usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-cloudwatch_logs-1.0.1/lib/logstash/inputs/cloudwatch_logs.rb:173:in `determine_start_position'
Stack: /usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-cloudwatch_logs-1.0.1/lib/logstash/inputs/cloudwatch_logs.rb:173:in `determine_start_position'

If I quote it, I get this error:

[2017-08-31T18:07:54,634][ERROR][logstash.agent ] Pipeline aborted due to error {:exception=>#<LogStash::ConfigurationError: start_position '3600' is invalid! Must be `beginning`, `end`, or an integer.>,
@lukewaite
Copy link
Owner

This is resolved in the just-tagged v1.0.2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants