Set up a REST API integration for Health Log Analytics
Set up an integration for streaming log data to your ServiceNow instance for processing by Health Log Analytics.
始める前に
- Verify that the Health Log Analytics application is installed and provisioned on your instance. For more information, see Install Health Log Analytics (HLA).
- Verify that a service instance is available.
- Verify that the Health Log Analytics AI Engine is up and running.
- Verify that a MID Server is installed and configured with the Log Ingestion capability enabled. For more information, see MID Server system requirements. 重要:Health Log Analytics does not support IPv6. To work with the application, configure the MID Server to IPv4.
On the MID Web Server Context form, in the Execute on field, select Specific MID Server and not the cluster option. In the MID Server field, select the specific MID Server to which the log data is pulled.
- Unless the MID Server and external clients are on the same network, the MID Server must have a public IP address. This is required when its IP is exposed through network address translation (NAT), a load balancer, or a similar device. The public IP address enables external clients, such as Filebeat agents located outside its network, to reach the MID Server. Private IP addresses are not routable over the internet. Without a public IP, external clients cannot connect to the MID Server even if they are configured with its address. In the MID Server properties, add a property named mid.public_ip with the public IP address as the value. For more information, see Create a MID Server property. If the MID Server and external clients are on the same network, connections can be made using the private IP address.
Role required: evt_mgmt_admin
このタスクについて
You set up integrations through the Integrations Launchpad in Service Operations Workspace, which you access from the ITOM AIOps configuration center. The AIOps configuration center is a centralized workspace for configuring and managing AIOps features from a single place. The integrations setup process reduces implementation time compared to manual data input setup in the classic interface in Health Log Analytics. For more information, see Integrations Launchpad in Service Operations Workspace for ITOM.
手順
次のタスク
- In the API client, configure a request with the following parameters:
- HTTP Method: POST.
- URL: The URL you copied in the Set-up instruction screen.
- Authentication: The required authentication credentials. For example, Basic authentication (username and password).注:The authentication method must be the same as the method configured on the MID Web Server.
- Headers: Set the
Content-Typeheader to match your payload format.- For JSON:
application/json. - For raw text:
text/plain.
- For JSON:
- Body: The logs payload in JSON or raw text.
- Send the request.
A successful response indicates that the MID Server has received the payload. When the MID Server has processed the log messages, the data input streams them to your ServiceNow instance using the REST protocol.