Log Insight 3.3: Authentication API

Log Insight 3.3 introduced an authentication API. In this post I would like to discuss what it, why do you need it, and how do you use it. Read on to learn more!

li-logo

What is it?

Enables remote client to programmatically authenticate with the Log Insight platform to perform certain operations.

Why do you need it?

To leverage any API features that require authentication, which includes:

  • Query API
  • Log Insight Importer

I will be covering these new features in a future posts.

How do you use it?

You make a POST request to https://LOGINSIGHT/api/v1/sessions (note http will not work). The request must have a header with the content-type set to application/json. In addition, three options need to be passed in the body:

  1. provider: <Local|ActiveDirectory> (note case-sensitive)
  2. username
  3. password

An example of calling the API would be:

And the response would look something similar to:

You could then use the sessionId for authenticated requests — more on this in future posts.

© 2016, Steve Flanders. All rights reserved.

Leave a Reply