How do I configure log forwarding to
VMware Aria Operations for Logs in VMware Aria AutomationLast Updated February 19, 2025
VMware Aria Operations for Logs
in VMware Aria Automation
To take advantage of more robust
log analysis and report generation, you can forward logs from
VMware Aria Automation
to VMware Aria Operations for Logs
.VMware Aria Automation
contains a fluentd-based
logging agent. The agent collects and stores logs so that they can be included in a log
bundle and examined later. The agent can forward a copy of the logs to a VMware Aria Operations for Logs
server by using the
VMware Aria Operations for Logs
REST API. The
API allows other programs to communicate with VMware Aria Operations for Logs
.For more information about
VMware Aria Operations for Logs
, including documentation for
the REST API, see VMware Aria Operations for Logs
documentation. To forward all
VMware Aria Automation
logs to VMware Aria Operations for Logs
, use vracli
configuration commands.You can examine each log line in
VMware Aria Operations for Logs
. Each log line contains a
host name and an environment tag. In a high availability (HA) environment, logs contains
tags with different host names depending on the node from which they originated. The
environment tag is configurable by using the --environment ENV
option
as described in the Configure or update integration of
section. In a high
availability (HA) environment, the environment tag has the same value for all log
lines.VMware Aria Operations for Logs
To display information about how to use the
vracli
command line utility, use the --help
argument in the vracli
command line. For example, vracli vrli
--help
. For a user-friendly response, begin the command with vracli
-j vrli
.You can only configure a single remote
logging integration.
VMware Aria Operations for Logs
has priority when a VMware Aria Operations for Logs
server and a syslog
server are
available.Check existing configuration of
VMware Aria Operations for Logs
VMware Aria Operations for Logs
Command
vracli vrli
Arguments
There are no command line arguments.
Output
The current configuration for
VMware Aria Operations for Logs
integration is output in JSON format.Exit codes
The following exit codes are possible:
- 0 - Integration withVMware Aria Operations for Logsis configured.
- 1 - An exception error occurred. Examine the error message for details.
- 61 - Integration withVMware Aria Operations for Logsis not configured. Examine the error message for details.
Example - check integration configuration
Configure or update integration
of VMware Aria Operations for Logs
VMware Aria Operations for Logs
Command
vracli vrli set [options] FQDN_OR_URL
After you run the command, it can take up to 2 minutes for the logging agent to
apply your specified configuration.
Arguments
- FQDN_OR_URLSpecifies the FQDN or URL address of theVMware Aria Operations for Logsserver to use for posting logs. Port 9543 and https are used by default. If any of these settings must be changed, you can use a URL instead.You can set a different host scheme (the default is HTTPS) and port (default for https is 9543, default for http is 9000) to use for sending the logs, as shown in the following samples:Ports 9543 for https and 9000 for http are used by theVMware Aria Operations for Logsingestion REST API as described in theAdministeringtopicVMware Aria Operations for LogsPorts and External InterfacesinVMware Aria Operations for Logsdocumentation.
- Options
- --agent-id SOME_IDSets the id of the logging agent for this appliance. The default is0. Used to identify the agent when posting logs toVMware Aria Operations for Logsby using theVMware Aria Operations for LogsREST API.
- --environment ENVSets an identifier for the current environment. It will be available inVMware Aria Operations for Logslogs as a tag for each log entry. The default isprod.
- --ca-file /path/to/server-ca.crtSpecifies a file that contains the certificate of the certificate authority (CA) that was used to sign the certificate of theVMware Aria Operations for Logsserver. This forces the logging agent to trust the specified CA and enable it to verify the certificate of theVMware Aria Operations for Logsserver if it was signed by an untrusted authority. The file may contain a whole certificate chain to verify the certificate. In the case of a self-signed certificate, pass the certificate itself.
- --ca-cert CA_CERTDefinition is identical to that of --ca-file as above, but instead passes the certificate (chain) inline as string.
- --insecureDeactivates SSL verification of the server certificate. This forces the logging agent to accept any SSL certificate when posting logs.
- Advanced options
- --request-max-size BYTESMultiple log events are ingested with a single API call. This argument controls the maximum payload size, in bytes, for each request. Valid values are between 4000 and 4000000. The default value is 256000. For related information for allowed values, seeVMware Aria Operations for Logsevents ingestion in theVMware Aria Operations for LogsREST API documentation. Setting this value too low can cause logging events that are larger than the allowed size to be dropped.
- --request-timeout SECONDSA call to the API can hang for a number of reasons including problems with the remote, networking issues,and so on. This parameter controls the number of seconds wait for each operation to complete, such as opening a connection, writing data, or awaiting a response, before the call is recognized as failed. The value cannot be less than 1 second. The default is 30.
- --request-immediate-retries RETRIESLogs are buffered in aggregated chunks before they are sent toVMware Aria Operations for Logs(see --buffer-flush-thread-count below). If an API request fails, the log is retried immediately. The default number of immediate retries is 3. If none of the retries is successful, then the whole log chunk is rolled back and is retried again later.
- --request-http-compressTo lower network traffic volumes, you can apply gzip compression to requests that are sent to theVMware Aria Operations for Logsserver. If this parameter is not specified, no compression is used.
- --buffer-flush-thread-count THREADSFor better performance and to limit networking traffic, logs are buffered locally in chunks before they are flushed and sent to the log server. Each chunk contains logs from a single service. Depending on your environment, chunks can grow large and time-consuming to flush. This argument controls the number of chunks that can be flushed simultaneously. The default is 2.
When configuring integration over https, if the
VMware Aria Operations for Logs
server is
configured to use an untrusted certificate such as a self-signed certificate
or a certificate that was signed by an untrusted authority, you must use one
of the --ca-file
, --ca-cert
or
--insecure
options or the logging agent fails to
validate the server identity and does not send logs. When using
--ca-file
or --ca-cert
, the
VMware Aria Operations for Logs
server certificate must be valid for the server's host name. In all cases,
verify the integration by allowing a few minutes for processing and then
checking that VMware Aria Operations for Logs
received the logs.Output
No output is expected.
Exit codes
The following exit codes are possible:
- 0 - The configuration was updated.
- 1 - An exception occurred as part of the execution. Examine the error message for details.
Examples - Configure or update integration configuration
The following example statements are shown in separate command lines, however the
arguments can be combined in a single command line. For example, you can include
multiple arguments when using
vracli vrli set
{
or somehost
}vracli vrli set --ca-file
path/to/server-ca.crt
to modify the default agent ID or environment
values. For related information, see the online command help at vracli vrli
--help
.Clear integration of VMware Aria Operations for Logs
VMware Aria Operations for Logs
Command
vracli vrli unset
After you run the command, it can take up to 2 minutes for the logging agent to
apply your specified configuration.
Arguments
There are no command line arguments.
Output
Confirmation is output in plain text format.
Exit codes
The following exit codes are available:
- 0 - The configuration was cleared or no configuration existed.
- 1 - An exception occurred as part of the execution. Examine the error message for details.
Examples - Clear integration