You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The {clo} deploys a service for each configured input receiver so that clients can write to the collector. This service exposes the port specified for the input receiver.
27
+
The service name is generated based on the following:
* For multi log forwarder `ClusterLogForwarder` CR deployments, the service name is in the format `<ClusterLogForwarder_CR_name>-<input_name>`. For example, `example-http-receiver`.
30
+
* For legacy `ClusterLogForwarder` CR deployments, meaning those named `instance` and located in the `openshift-logging` namespace, the service name is in the format `collector-<input_name>`. For example, `collector-http-receiver`.
Copy file name to clipboardExpand all lines: modules/log-collector-http-server.adoc
+35-2
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ You can configure your log collector to listen for HTTP connections and receive
19
19
20
20
. Modify the `ClusterLogForwarder` CR to add configuration for the `http` receiver input:
21
21
+
22
+
--
23
+
.Example `ClusterLogForwarder` CR if you are using a multi log forwarder deployment
22
24
[source,yaml]
23
25
----
24
26
apiVersion: logging.openshift.io/v1beta1
@@ -42,11 +44,42 @@ spec:
42
44
----
43
45
<1> Specify a name for your input receiver.
44
46
<2> Specify the input receiver type as `http`.
45
-
<3> Currently, only the the `kube-apiserver` webhook format is supported for `http` input receivers.
47
+
<3> Currently, only the `kube-apiserver` webhook format is supported for `http` input receivers.
46
48
<4> Optional: Specify the port that the input receiver listens on. This must be a value between `1024` and `65535`. The default value is `8443` if this is not specified.
47
49
<5> Configure a pipeline for your input receiver.
50
+
--
51
+
+
52
+
--
53
+
.Example `ClusterLogForwarder` CR if you are using a legacy deployment
54
+
[source,yaml]
55
+
----
56
+
apiVersion: logging.openshift.io/v1
57
+
kind: ClusterLogForwarder
58
+
metadata:
59
+
name: instance
60
+
namespace: openshift-logging
61
+
spec:
62
+
inputs:
63
+
- name: http-receiver # <1>
64
+
receiver:
65
+
type: http # <2>
66
+
http:
67
+
format: kubeAPIAudit # <3>
68
+
port: 8443 # <4>
69
+
pipelines: # <5>
70
+
- inputRefs:
71
+
- http-receiver
72
+
name: http-pipeline
73
+
# ...
74
+
----
75
+
<1> Specify a name for your input receiver.
76
+
<2> Specify the input receiver type as `http`.
77
+
<3> Currently, only the `kube-apiserver` webhook format is supported for `http` input receivers.
78
+
<4> Optional: Specify the port that the input receiver listens on. This must be a value between `1024` and `65535`. The default value is `8443` if this is not specified.
79
+
<5> Configure a pipeline for your input receiver.
80
+
--
48
81
49
-
. Apply the changes to the `ClusterLogForwarder` CR:
82
+
. Apply the changes to the `ClusterLogForwarder` CR by running the following command:
0 commit comments