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

pipeline management hard code version in metadata #82045

Open
kaisecheng opened this issue Oct 29, 2020 · 1 comment
Open

pipeline management hard code version in metadata #82045

kaisecheng opened this issue Oct 29, 2020 · 1 comment
Labels

Comments

@kaisecheng
Copy link
Contributor

Not sure if it should classify as a bug because users have no impact by now. However, this impact Logstash behavior in pipelines comparison

Kibana version:
master

Elasticsearch version:
master

Server OS version:
mac

Browser version:
chrome Version 86.0.4240.111 (Official Build) (x86_64)

Browser OS version:
mac

Describe the bug:
The centralized pipeline management overwrite pipeline["pipeline_metadata"]["version"] to "1" in every save action.
User can do all the actions but the "version" information lose in elasticsearch

Steps to reproduce:

  1. create a new pipeline heartbeat in Kibana

  2. update the new pipeline in elasticsearch with "version": "2"

curl -X PUT -v "localhost:9200/_logstash/pipeline/heartbeat"  -H 'Content-Type: application/json' -d '{
    "pipeline": "input { generator { count => 100 }} output { stdout { codec => \"rubydebug\"}}",
    "last_modified": "2020-10-01T15:42:30.229Z",
    "pipeline_metadata": { "version": "2"},
    "username": "log.stash",
    "pipeline_settings": {"pipeline.batch.delay": "50"}
}'
  1. edit the same pipeline heartbeat in Kibana and save the change

  2. fetch pipeline setting in elasticsearch

curl -X GET -u "elastic:elasticpass" "localhost:9200/_logstash/pipeline/heartbeat"

you will see the version is "1" again.

Expected behavior:
Kibana is expected to update "version" in every save action

@bhavyarm bhavyarm added Feature:Logstash Pipelines Logstash Pipeline UI related Team:Fleet Team label for Observability Data Collection Fleet team labels Oct 29, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@jen-huang jen-huang removed the Team:Fleet Team label for Observability Data Collection Fleet team label Apr 26, 2021
@botelastic botelastic bot added the needs-team Issues missing a team label label Apr 26, 2021
@botelastic botelastic bot removed the needs-team Issues missing a team label label May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants