Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logstash keystore --stdin option #11436

Open
nbowditch opened this issue Dec 12, 2019 · 1 comment
Open

Logstash keystore --stdin option #11436

nbowditch opened this issue Dec 12, 2019 · 1 comment

Comments

@nbowditch
Copy link

Other Elastic products (Elasticsearch, Kibana) support a --stdin option when adding a key to the keystore. In my specific case, I was trying to pipe a value for the key to the add command, but found that the value would be terminated early at a space in the value.

Example Powershell:

$TestValue = "TEST TEST"
$TestValue | .\bin\logstash-keystore.bat add "test"

Example conf file:

...
filter {
    mutate {
        add_field => { "test" => "${test}" }
    }
}
...

Resulting document:

{
    "test": "TEST",
    ...
}

Version: 6.8.0
Operating System: Windows 10

@barkbay
Copy link

barkbay commented Nov 28, 2024

👋 Logstash team, I think we are hitting this issue in ECK (elastic/cloud-on-k8s#8270), do you know if there is any workaround? Thanks!

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

No branches or pull requests

2 participants