Consider the following code:
input {
http_poller {
urls => {
myurl1 => {
...
password => 123456
}
myurl2 => {
...
password => 123456
}
...
}
...
}
...
}
Can I replace password => 123456
with something like password => ${mypassword}
without using environment variables?
Although environment variables could solve the problem, I have many "constants" in my code that are nearly/exactly identical in my pipeline and I think it would be unwidely to pass them as env vars on every execution.
I'm considering generating my pipeline programatically from a template. Is that the most common approact to this kind of problem?