ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
13.97k stars 3.41k forks source link

Dynatrace external logging #14319

Open sebw opened 1 year ago

sebw commented 1 year ago

Please confirm the following

Feature type

New Feature

Feature Summary

Next to logstash, splunk and others, it would be nice to add Dynatrace to the list of supported logging aggregators.

The configuration is very similar to Splunk. The HTTP header value changes from Splunk to Api-Token .

This is a working config file:

[root@aap ~]# cat /var/lib/awx/rsyslog/rsyslog.conf
$WorkDirectory /var/lib/awx/rsyslog
$MaxMessageSize 700000
$IncludeConfig /var/lib/awx/rsyslog/conf.d/*.conf
main_queue(queue.spoolDirectory="/var/lib/awx" queue.maxdiskspace="1g" queue.type="Disk" queue.filename="awx-external-logger-backlog")
module(load="imuxsock" SysSock.Use="off")
input(type="imuxsock" Socket="/var/run/awx-rsyslog/rsyslog.sock" unlink="on" RateLimit.Burst="0")
template(name="awx" type="string" string="%rawmsg-after-pri%")
module(load="omhttp")
action(type="omhttp" server="fdgXXXXX.live.dynatrace.com" serverport="443" usehttps="on" allowunsignedcerts="off" skipverifyhost="off" action.resumeRetryCount="-1" template="awx" action.resumeInterval="6" errorfile="/var/log/tower/rsyslog.err" restpath="api/v2/logs/ingest" httpheaderkey="Authorization" httpheadervalue="Api-Token dt0c01.ABCDEFGH")

image

Select the relevant components

Steps to reproduce

N/A

Current results

N/A

Sugested feature result

N/A

Additional information

No response

fosterseth commented 1 year ago

@sebw thank you for looking into getting Dynatrace working with AWX. Sounds like the change is straightforward, would you be interested in opening a PR to get this feature added (and a docs change)?

fosterseth commented 1 year ago

would also want to check that this Dynatrace option is populated in the UI here (settings > log settings)

image