Elk stack and outsystems monitor probe using bearer token
Platform Version
11.9.2 (Build 29615)

Hi,
I am new to outsystems and currently working on ELK stack.

I was looking to use the Monitor Probe for pulling outsystems logs.

I have read the github documentation for this
https://github.com/OutSystems/outsystems-elastic-integration

In the logstash conf file, I can see some settings to be completed in order to use the monitor probe

MP_BASE_URL=""
MP_USER=""

MP_PASSWORD=""

MP_INTERVAL="3"

MP_SCHEDULE="2m"

MP_REQUEST_TIMEOUT="120"

MP_SOCKET_TIMEOUT="60"


In the documentation for Monitor Probe, they recommend use of bearer token
https://www.outsystems.com/forge/Component_Documentation.aspx?ProjectId=4559&ProjectName=monitorprobe

I am just wondering, in order to use the bearer token, do I just add

Authorization: Bearer <authentication_token>

as a new field and not use the user and password fields ?

Any suggestions would be helpful.

Thanks

mvp_badge
MVP

Looking at point 4 in the documentation, I believe your assumption is correct:

4. If you set the previous value as “Token”, you have to also set the site property RequestTokenAuthentication with the token that the requests must pass on the Authorization header as “Bearer <token you defined>

This means you can leave the MP_USER and MP_PASSWORD empty since they are used for the "Basic" authentication.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.