Skip to content

Notion of State / Variable Expansion in Config #51

Open
@PhaedrusTheGreek

Description

@PhaedrusTheGreek

As explained in Event Dependent Configuration

Some of the configuration options in Logstash require the existence of fields in order to function. Because inputs generate events, there are no fields to evaluate within the input block—they do not exist yet!

Which is fair, but some plugins such as the http_poller run on intervals, and could theoretically access some state.

The end goal would be to say something like this:

With use of some globally maintained variable (not even sure the best way to do this)

url => "http://my-server.com/stats?time=%{now}"

Or by maintaining an environment variable outside of Logstash

url => "http://my-server.com/stats?time=${now}"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions