1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/logging-http-forward.adoc

49 lines
1.2 KiB
Plaintext

// Module included in the following assemblies:
// logging/cluster-logging-external
// *
:_content-type: PROCEDURE
[id="logging-deploy-loki-console_{context}"]
= Forwarding logs over HTTP
Forwarding logs over HTTP is supported for both fluentd and vector collectors. To enable, specify `http` as the output type in the `ClusterLogForwarder` custom resource (CR).
.Procedure
* Create or edit the ClusterLogForwarder Custom Resource (CR) using the template below:
.Example ClusterLogForwarder CR
[source,yaml]
----
apiVersion: "logging.openshift.io/v1"
kind: "ClusterLogForwarder"
metadata:
name: "instance"
namespace: "openshift-logging"
spec:
outputs:
- name: httpout-app
type: http
url: <1>
http:
headers: <2>
h1: v1
h2: v2
method: POST
secret:
name: <3>
tls:
insecureSkipVerify: <4>
pipelines:
- name:
inputRefs:
- application
outputRefs:
- <5>
----
<1> Destination address for logs.
<2> Additional headers to send with the log record.
<3> Secret name for destination credentials.
<4> Values are either `true` or `false`.
<5> This value should be the same as the output name.