Accepting a batch of logs

I have a need to send directly from the browser a batch of logs directly into logstash http input. So we have developers logging a bunch of information, we then batch those logs and until we reach say 1000 entries, we take that batch of 1000 lines and want to send that directly to logstash for it to go through it and ultimately end up in es. Has anyone done anything similar. I've seen bulk API for es but thinking its better to go through logstash for queuing and any enrichment. What are my options?

You could send a POST request, containing each entry as a json structure, and a line return between each json entry.

Then, on logstash, use "json_lines" codec in http input :

http {
 codec => json_lines
}