HTTP
Most recent version: v1.3.0


Overview
Onum supports integration with HTTP.
HTTP, which stands for Hypertext Transfer Protocol, is a foundational protocol for communication on the World Wide Web. It defines how messages are formatted and transmitted between web servers and browsers, enabling the retrieval and display of webpages and other web content.
Select HTTP from the list of Listener types and click Configuration to start.
Listener configuration
Now you need to specify how and where to collect the data and how to establish an HTTP connection.
Metadata
Enter the basic information for the new Listener.
Name*
Enter a name for the new Listener.
Description
Optionally, enter a description for the Listener.
Tags
Add tags to easily identify your Listener. Hit the Enter
key after you define each tag.


Configuration
Note that you won't see the Socket and TLS configuration sections in the creation form if you're defining this Listener in a Cloud instance, as Onum already provides these. Learn more about Cloud Listeners in this article.
Socket
Port*
Enter the port number used by the server or client to establish an HTTP connection.
TLS configuration
Note that the parameters in this section are only mandatory if you decide to include TLS authentication in this Listener. Otherwise, leave blank.
Certificate*
This is the predefined TLS certificate.
Private key for this listener*
The private key of the corresponding certificate.
CA chain
The path containing the CA certificates.
Client authentication method*
Choose between No, Request, Require, Verify, and Require & Verify.
Minimum TLS version*
Select the required version from the menu.


Authentication
Authentication Type*
If your connection does not require authentication, leave as None. Otherwise, choose the authentication type and enter the details.
Authentication credentials
The options provided will vary depending on the type chosen to authenticate your API. This is the type you have selected in the API end, so it can recognize the request.
Choose one of the options below, or select None if you don't require any authentication.
Endpoint
HTTP Method*
Choose GET, POST, or PUT method.
Request path*
Path to the resource being requested from the server.


Message extraction
Strategy*
The strategy defines how data extraction should be performed. It is the overall methodology or approach used to extract relevant information from HTTP messages. Choose between:
Single event with the whole request - Choose this option if you want to include the whole request in each event.
Single event from request path - Choose this option if you want to include the request paths in each event.
Single event as query string - Choose this option if you want to include the requests with their whole query strings.
Single event as query parameter - Choose this option if you want to include a specific request parameter in your events. Specify the required parameter name in the Extraction info option (for example:
msg
)Single event as header - Choose this option if you want to include a specific header in your events. Specify the required header in the Extraction info option (for example:
Message
)Single event as body (partially) - Choose this option if you want to include a part of the request body in your events. Specify the required RegEx rule to match the required part in the Extraction info option (for example:
\\[BODY: (.+)\\]
)Single event as body (full) - Choose this option if you want to include the whole request body in your events. Specify the required RegEx rule to match the required part in the Extraction info option (for example:
\\[BODY: (.+)\\]
)Multiple events at body with delimiter - Choose this option if you want to include several messages in the same event separated by a delimiter. You must specify the delimiter in the Extraction info option.
Multiple events at body as JSON array - Choose this option if you want to include several messages formatted as a JSON array in your events.
Multiple events at body as stacked JSON - Choose this option if you want to include several messages formatted as a stacked JSON in your events.
Extraction info
The extraction info defines what specific data elements should be extracted based on the selected strategy. Check the strategy descriptions above for more details.


General behavior
Propagate headers strategy
Choose between None (default option), Allow (enter the required header keys below), or All (all headers will be retrieved in the headers
field).
Header keys
Enter the required header keys in this field. Click Add element for each one.
Exported headers format
Choose the required format for your headers. The default value is JSON.
Maximum message length
Maximum characters of the message. The default value is 4096
.
Response code
Specify the response code to show when successful. The default value is 202 Accepted.
Response Content-Type
The Content-Type: xxx/xxx
lets the server know the expected format of the incoming message or request (application/json by default):
text/plain - The message body contains plain text.
application/json - The message body is formatted as JSON.
application/xml - The message body is formatted as XML.
text/html - The message body contains HTML.
Response Text (Success)
The text that will show in case of success.


DNS Address
Copy these details to configure your data source in order to communicate with Onum. This contains the IP address of the DNS (Domain Name System) server to connect to.
Note that you will only see this section if you're defining this Listener in a Cloud instance. Learn more about Cloud Listeners in this article.


Click Create labels to move on to the next step and define the required Labels if needed.
Last updated
Was this helpful?