Ingest logs from a web API that require auth in a separate request

Hi!

We are currently facing a situation in which we need to request the logs to an external API. Our initial idea was to do this using Filebeat's httpjson plugin, but now we are uncertain that this can be achieved, given API usage, which goes as follows:

  1. You send a request to "example.com/v1.0/token" providing the user/password to get an auth token
  2. You send the request to "example.com/logs" providing said token to retrieve the logs

Since we are no Elastic experts, we are wondering which would be the best method to collect these logs

I do not use Filebeat for this, but according to the documentation it seems possible.

Plese, check the examples in the documentation.

1 Like

Hi leandrojmp,

You are right, it looks like I completely missed that example when browsing the documentation.

Thank you very much and excuse me for the trouble.

Best regards!

Miguel

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.