Open reshippie opened 4 years ago
Encountered this again in HS-584826471.
This functionality is currently not implemented, so we need to revisit it for an upcoming release.
I'm also running into this in 4.2.4 and 4.2.5. Would be nice with a solution since it feels like this breaks the whole idea of content packs? 🤔
@reshippie What workaround route have you gone for? Something that isn't a pita? 🥵
I don't know if this qualifies as a "workaround," but I'm no longer using Graylog.
I still think this is a bug, but it no longer affects me.
excerpted from forum post
I created a content pack to distribute pipeline rules to the various clusters I have. I updated some of the rules, so I figured I could just update the revision number, upload that everywhere, and be all set.
I was able to upload the new content pack, but when I select “Install” from the Actions list on the new revision I get a 500 error. In the server logs I find the following error:
Caused by: org.graylog2.contentpacks.exceptions.DivergingEntityConfigurationException: Different pipeline rule sources for pipeline rule with name "upload"
Expected Behavior
I expected that making a new revision to my content pack would allow me to update the pipeline rules in place. I assumed it would just overwrite the existing rules since they have the same names.
Current Behavior
When installing a content pack that contains a pipeline rule with the same name as an existing rule, there is a check to see if they contain the same "source." If they do not, an error is thrown.
Possible Solution
Provide a "Yes, I know what I'm doing" checkbox to allow overwrites of existing pipeline rules.
I noticed that the Grok Pattern and Lookup Table facades also contain similar comparison code, so I would assume such an option would be useful with those as well.
Steps to Reproduce (for bugs)
Context
I'm trying to use content packs to distribute pipeline rules to multiple clusters. My workaround is to manually update each pipeline rule in each cluster, but that does not scale well and is time consuming.
Your Environment