Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Shared sincedb for multiple instances #91

Open
piequi opened this issue Jan 22, 2021 · 1 comment
Open

Shared sincedb for multiple instances #91

piequi opened this issue Jan 22, 2021 · 1 comment

Comments

@piequi
Copy link

piequi commented Jan 22, 2021

Hi !

First of all, that's a nice and practical plugin you made here !

It appears that with the sincedb written to the filesystem of the logstash instance, it makes difficult to have multiple instances running at the same time and sharing the next_token value for a given log group stream.

What's more, considering that we may run logstash in containers, and that a container is to be replaceable, every time a new container is spawn, it will start with an empty sincedb.

How would you address this without considering mounting a shared volume able to manage concurrent writes ?
Would dynamoDB storage be feasible ?

Thank for sharing your ideas.

@morganchristiansson
Copy link

morganchristiansson commented Jan 27, 2021

The solution is to run logstash cloudwatch input on a single logstash instance/pipeline. There's a few input sources that have this problem.

When multiple logstash pipelines are pulling the same data they will all receive it and duplicate it.

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

No branches or pull requests

2 participants