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

Export online #2

Open
klinux opened this issue Mar 30, 2023 · 2 comments
Open

Export online #2

klinux opened this issue Mar 30, 2023 · 2 comments

Comments

@klinux
Copy link

klinux commented Mar 30, 2023

The code only migrate data from ES to Loki, is possible or what is the difficult to let job export online?

Instead finish job, listen the current index and put this doc into loki online.

Great job.

Thank you

@igorcoding
Copy link
Member

Hello! Great question. I think it is possible to add such functionality, but needs some refactoring. But I have a question - in my mind the process of continuous logs forwarding from es to loki is just unnecessary - you can simply spin up a promtail for "new" logs in parallel with filebeat and transfer all the old logs using es2loki up until the date when promtail started transferring logs. It is the case of when if you're migrating from Elasticsearch to Loki for example.
What is your case? Why promtail (or any other log collector) seems to be not enough?

@klinux
Copy link
Author

klinux commented Apr 13, 2023

Hello, thank you for the reply, yes, in most cases the promtail will be the solution, in my case, the application put the logs directly in ES, and as logstash do not have persistence of position, I can't use it to expose logs from ES to Loki, and promtail can't use ES as input stream, that is my case.

Thank you

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