How would I extract a token in Cribl REST collector authentication with a HTTP request?
In HTTP request, getting token directly in text response without any field. Then how would I extract that token in Cribl REST collector authentication.
Answers
-
Yaa <@U04PA0YAW2K>True, was just wondering as i have also came across the text response so how it would be extracted in Cribl ? <@U03KND56HLL> <@U01LSBF5953> can you please help us with the same?
0 -
Here is an example authenticating against the crowdstrike api to get a bearer token.
0 -
Thanks <@U03KND56HLL> but in our api we are getting the response in text and not in json. So,how to extract that text value?
0 -
<@U051H0G2AFL> what is the API you are connecting to?
0 -
<@U04PA0YAW2K> what is the API you are connecting to?
0 -
I am not using crowdstrike API. I cannot provide the api which I am using but the Content-Type of the response is text/plain so then how can I configure that in Cribl?
0 -
This is not supported today. There is already an enhancement request for this: CRIBL-10906
0