Posting events using the HTTP gateway
An HTTP client can send events by using the HTTP gateway. A gateway feature must be included in the server configuration for the gateway to accept events over HTTP.
Before you begin
You must have an Insight Server that is configured and started. You must also deploy your solution to the server before you can post an event.
The Insight Server must be configured to enable the HTTP gateway feature. The HTTP gateway feature is enabled by default in a development server that is created from the cisDev template, and it can be enabled in a runtime server or inbound connectivity server.
The HTTP gateway feature can be activated by including the following configuration in the server.xml file:
<featureManager>
<feature>ia:iaHTTPGateway-8.10.5</feature>
</featureManager> iaHTTPGatewaySubmitter
security role is used to authorize users and groups to submit events by using the HTTP gateway. The
<security-role> element must be configured in the
<authorization-roles id="iaAuthorization"> element. The following example
server.xml file shows how to authorize all authenticated users to submit events
by using the HTTP
gateway:<featureManager>
<feature>ia:iaHTTPGateway-8.10.5</feature>
</featureManager>
<authorization-roles id="iaAuthorization">
<security-role name="iaHTTPGatewaySubmitter">
<special-subject type="ALL_AUTHENTICATED_USERS" />
</security-role>
<!-- Other security-role elements, as required -->
</authorization-roles>The HTTP gateway accepts HTTP POST requests containing XML or JSON content. You can use XML to POST events that are represented by TYPED_XML (conforming to the XML schema of the event) or GENERIC_XML.
Procedure
Results
After you submit the events, you can use the administrator tools to validate the arrival of the events and the creation of the entities. The REST API for example, is a quick way to validate that entities are inserted into the grid. You can enter REST URLs in the address field of your browser to access the stored solutions and entities in the server.
What to do next
You can test events in a development environment by quickly sending in events. When you are ready to move on to system tests, staging, or production, add a connectivity definition for the inbound HTTP endpoint to your solution to use endpoint-specific, role-based security, transformations, and performance monitoring.