Skip to content

schedule every behavior #125

@ajrpayne

Description

@ajrpayne

Logstash information:

bin/logstash --version
Using bundled JDK
logstash 7.12.0

Logstash expanded from tar
Ran via command line

5.11.14-1-MANJARO SMP PREEMPT x86_64 GNU/Linux

Description of the problem including expected versus actual behavior:

schedule => {
    every => "60"
}

My understanding is that every will execute on start and then every 60 seconds after. Currently, in logstash 7.12 it only starts executing after the 60 seconds is up. It does not perform the first poll on start.

input {
http_poller {
urls => {
statc => {
method => get
url => "https://www.statc.json?lang=E"
headers => {
Accept => "application/json"
}
}
}
request_timeout => 60
schedule => {
every => "60"
}
codec => "plain"
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions