Skip to content

Commit 9a95707

Browse files
committed
fixed logstash filter , updated installation.md doc with new name for elk integration
1 parent 706bf61 commit 9a95707

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

site/installation.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The following parameters must be provided in the input file:
8282
| serviceAccount | The name of the service account that the operator will use to make requests to the Kubernetes API server. | weblogic-operator |
8383
| loadBalancer | Determines which load balancer should be installed to provide load balancing for WebLogic clusters. Allowed values are:<br/>- `none` – do not configure a load balancer<br/>- `traefik` – configure the Traefik Ingress provider<br/>- `nginx` – reserved for future use<br/>- `ohs` – reserved for future use | traefik |
8484
| loadBalancerWebPort | The NodePort for the load balancer to accept user traffic. | 30305 |
85-
| enableELKintegration | Determines whether the ELK integration will be enabled. If set to `true`, then ElasticSearch, logstash and Kibana will be installed, and logstash will be configured to export the operator’s logs to ElasticSearch. | false |
85+
| elkIntegrationEnabled | Determines whether the ELK integration will be enabled. If set to `true`, then ElasticSearch, logstash and Kibana will be installed, and logstash will be configured to export the operator’s logs to ElasticSearch. | false |
8686

8787
## Decide which REST configuration to use
8888

@@ -110,9 +110,9 @@ Note that Ingresses are not created for servers that are not part of a WebLogic
110110

111111
### Log integration with ELK
112112

113-
The operator can install the ELK stack and publish its logs into ELK. If enabled, ElasticSearch and Kibana will be installed in the `default` namespace, and a logstash pod will be created in the operator’s namespace. Logstash will be configured to publish the operator’s logs into ElasticSearch, and the log data will be available for visualization and analysis in Kibana.
113+
The operator can install the ELK stack and publish its logs into ELK. If enabled, ElasticSearch and Kibana will be installed in the `default` namespace, and a logstash container will be created in the operator pod. Logstash will be configured to publish the operator’s logs into ElasticSearch, and the log data will be available for visualization and analysis in Kibana.
114114

115-
To enable the ELK integration, set the `enableELKintegration` option to `true`.
115+
To enable the ELK integration, set the `elkIntegrationEnabled` option to `true`.
116116

117117
## Deploying the operator to a Kubernetes cluster
118118

@@ -129,7 +129,6 @@ The script will carry out the following actions:
129129
* A set of Kubernetes YAML files will be created from the inputs provided.
130130
* A namespace will be created for the operator.
131131
* A service account will be created in that namespace.
132-
* If ELK integration was enabled, a persistent volume for ELK will be created.
133132
* A set of RBAC roles and bindings will be created.
134133
* The operator will be deployed.
135134
* If requested, the load balancer will be deployed.
@@ -213,8 +212,8 @@ The spec section provides details for the container that the operator will execu
213212
secretName: operator-secrets
214213
# Uncomment this volume if using ELK integration:
215214
# - name: log-dir
216-
# persistentVolumeClaim:
217-
# claimName: elk-pvc
215+
# emptyDir:
216+
# medium: Memory
218217
# Update the imagePullSecrets with the name of your Kubernetes secret containing
219218
# your credentials for the Docker Store/Oracle Container Registry.
220219
imagePullSecrets:

src/main/scripts/logstash.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ input {
88

99
filter {
1010
grok {
11-
match => ["message",'"exception":"%{GREEDYDATA:exception}","headers":{%{GREEDYDATA:headers}},"code":"%{GREEDYDATA:code}","method":"%{GREEDYDATA:method}","level":"*%{WORD:level}","thread":%{DATA:thread},"timeInMillis":%{DATA:timeInMillis},"message":"%{GREEDYDATA:log}","body":"%{GREEDYDATA:body}","class":"%{JAVACLASS:class}","timestamp":"%{DATA:timestamp}"']
11+
match => ["message",'"timestamp":"%{DATA:timestamp}","thread":%{DATA:thread},"level":"*%{WORD:level}","class":"%{JAVACLASS:class}","method":"%{WORD:method}","timeInMillis":%{POSINT:timeInMillis},"message":%{QUOTEDSTRING:log},"exception":%{QUOTEDSTRING:exception},"code":"%{GREEDYDATA:code}"']
1212
}
1313
date {
1414
match => [ "timestamp", "MM-dd-YYYY'T'HH:mm:ss.SSSZ" ]

0 commit comments

Comments
 (0)