Collect data using HTTP
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.
Prerequisites
Contact Onum to get the cert information needed for TLS communication, which will be needed on the Listener setup.
Important notes
The SIEM type will be
Other.You must generate a JWT token and add it as an HTTP header. Add the word
Bearerbefore the token value (Bearer <token>). The corresponding secret value will be added in the Onum configuration later.
Contact us if you cannot generate a JWT token.

Onum Setup
Log in to your Onum tenant and click Listeners > New listener.
Double-click the HTTP Listener.
Enter a Name for the new Listener. Optionally, add a Description and some Tags to identify the Listener.
In the Socket section, enter the required Port. By default, all TCP ports from 1024 to 10000 are open.
In the TLS configuration section, enter the data you received from the Onum team (Certificate, Private key and CA chain). Choose No client certificate as Client authentication method and TLS v.1.0 as the Minimum TLS version.
If your connection does not require Authentication, leave as None. Otherwise, choose the authentication type and enter the details.
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.


You can now select the secret you just created in the Token Secret field.
In the Endpoint section, choose GET, POST, or PUT method and the Path to the resource being requested from the server.
In the Message extraction section, 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.
In the General behavior section, choose between None (default option), Allow (enter the required header keys below), or All (all headers will be retrieved in the headers field).
Then, configure the following settings:
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/xxxlets 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 - The text that will show in case of success.
Copy the DNS Address 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.
Finally, click Create labels. Optionally, you can set labels to be used for internal Onum routing of data. By default, data will be set as Unlabeled. Click Create listener when you're done.
Click Create listener when you're done.
Last updated
Was this helpful?

