Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

How to combine multiple request to 1 JSON file? #30

Open
dirablue opened this issue Mar 7, 2021 · 7 comments
Open

How to combine multiple request to 1 JSON file? #30

dirablue opened this issue Mar 7, 2021 · 7 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@dirablue
Copy link

dirablue commented Mar 7, 2021

@perriea
Hi Thank you for making nice plugin.

I tried and I have a question.

I tested some request with this plugin, and JSON files are created each request.
How can I combine multiple request to 1 JSON file using time rotation, file-size ?

@perriea perriea added the question Further information is requested label Mar 7, 2021
@perriea perriea self-assigned this Mar 7, 2021
@perriea
Copy link
Member

perriea commented Mar 7, 2021

Hi @dirablue this functionality isn't available now. Have you an example (documentation) in another plugin ?

@perriea perriea added the help wanted Extra attention is needed label Mar 7, 2021
@dirablue
Copy link
Author

dirablue commented Mar 9, 2021

@perriea
Hi Perriea, thank you for your message.

if this plugin is able to support like rotate_wait, it would be great to me.
https://docs.fluentd.org/input/tail#rotate_wait

I have a plan to send many requests to GCS with this plugin. ( like log data )
But files are separated each request, and GCS fee should be high.

Could you consider to implement of combine data to 1 JSON with rotation option .. ?

@perriea
Copy link
Member

perriea commented Mar 10, 2021

Hmm, you can't write all logs in one file. All object unchanging.
But I can wait for the size or the duration (second, minute ...) before sending logs to GCS, example : https://github.com/chestercheng/fluent-bit-go-azblob/blob/devel/cmd/out_azblob/config.go#L104

@perriea perriea added the enhancement New feature or request label Mar 10, 2021
@dirablue
Copy link
Author

@perriea

But I can wait for the size or the duration (second, minute ...) before sending logs to GCS, example :

in this case, some requests will be saved in 1 JSON file? ( not all logs, only some )
it's great if it's possible !

@perriea
Copy link
Member

perriea commented Mar 10, 2021

Yes it's not complicated, I see that this we 🚀

@dirablue
Copy link
Author

@perriea
wao, thank you so much !
I'm looking forward to use it !

@dirablue
Copy link
Author

@perriea
Hi perriea, may I ask you about when you are able to implement it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants