Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.33k stars 1.06k forks source link

Better process to update content packs #3517

Open HyderNBK117 opened 7 years ago

HyderNBK117 commented 7 years ago

This issue comes from this inquiry - https://community.graylog.org/t/how-to-update-content-packs-in-the-webapp/112.

Its situation around the Content packs functionality - menu from the top -> System -> Content Packs

Current situation is that there are multiple Graylog instances deployment servicing a development environment (Local, DEV, UAT, LIVE/Production). A Content pack was created and now is replicated throughout each environment.

Expected Behavior

Create an update to a content pack which does duplicate, triplicate etc items when a content pack is applied.

Current Behavior

Every time you click 'Apply Content' it adds the entire contents again, meaning it will duplicate, triplicate etc etc

Possible Solution

Have another option to update the current content pack, currently when you select Apply Content it doesn't check if there is an already existing item.

Steps to Reproduce (for bugs)

  1. Create Content pack
  2. Upload to new server/instance
  3. Click Apply Content - Content will be added
  4. Click Apply Content - Same Content will be added again

Context

I'm trying to synchronize different environments which represent different stages through a development cycle.

Your Environment

h0tw1r3 commented 7 years ago

Expected behavior should be: Duplicates are updated.

We have the same setup in our environment. We use puppet to maintain content-packs, which is great for initial provision, but any updates need to be applied manually :-1: . Obviously this doesn't happen too often, but occasionally it is necessary to update a grok pattern or extractor.

luciano-coder commented 5 years ago

Hi,

I'm facing the same issue at the moment and wondered if anyone has a decent workaround for this? For instance, is it possible to remove and install via the API?

Many Thanks