Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit a11bd75

Browse files
committed
readme updates
1 parent 801e55d commit a11bd75

File tree

1 file changed

+56
-3
lines changed

1 file changed

+56
-3
lines changed

README.md

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,22 @@ The following features are planned for the next few releases:
1717
sidecar, e.g. fluentd or Logstash,
1818
* Provide the ability to publish other logs (i.e. other than the server logs).
1919

20+
## Contents
21+
22+
* How to [download the release](#download-the-release)
23+
* How to [build from source](#building-from-source)
24+
* How to [install](#installation) the WebLogic Logging exporter
25+
* How to [contribute](#contributing) to this project
26+
* [License](#license) information
27+
2028

2129
## Getting Started
2230

2331
These instructions outline the steps to build the `weblogic-logging-exporter.jar` file, which can then
2432
be integrated into the [WebLogic Kubernetes Operator](https://github.com/oracle/weblogic-kubernetes-operator/)
2533
for handling the server logs generated by the WebLogic Server domain.
2634

35+
2736
## Download the release
2837

2938
You can download the WebLogic Logging Exporter already compiled for you from the
@@ -199,11 +208,55 @@ git clone git@orahub.oraclecorp.com:oracle/wls-logging-exporter.git
199208
mvn install
200209
```
201210

202-
The `weblogic-logging-exporter-0.1-SNAPSHOT.jar` will be available under the `target` directory.
211+
The `weblogic-logging-exporter-0.1.jar` will be available under the `target` directory.
212+
213+
## Installation
214+
215+
This section outlines the steps that are required to add the Weblogic Logging Exporter to Weblogic Server.
216+
217+
1. Download or build the WebLogic Logging Exporter as described above.
218+
219+
1. Copy the `weblogic-logging-exporter-0.1.jar` into a suitable location, e.g. into your domain directory.
220+
221+
1. Add a startup class to your domain configuration.
222+
223+
* In the administration console, navigate to "Environment" then "Startup and Shutdown classes" in the main menu.
224+
* Add a new Startup class, you may choose any descriptive name, and the class name must be
225+
`weblogic.logging.exporter.Startup`.
226+
* Target the startup class to each server that you want to export logs from.
203227

204-
## Deployment
228+
You can verify this by checking for the update in your `config.xml` which should be similar to this example:
229+
230+
```
231+
<startup-class>
232+
<name>LoggingExporterStartupClass</name>
233+
<target>AdminServer</target>
234+
<class-name>weblogic.logging.exporter.Startup</class-name>
235+
</startup-class>
236+
```
237+
238+
1. Add `weblogic-logging-exporter.jar` and `snakeyaml.jar` to your classpath
239+
240+
This project requires the YAML parser to parse the configuration file. Thus you also need to add the
241+
snakeyaml.jar to your class path. If you have build the project yourself, the jar should be available as
242+
repository/org/yaml/snakeyaml/1.19/snakeyaml-1.19.jar, or you can download that from
243+
https://jar-download.com/artifacts/org.yaml/snakeyaml/1.19/source-code
244+
245+
You may want to create a file named "WebLogicLoggingExporter.yaml" and put it under the config directory
246+
of domain home. This is the default location. Or you can specify a system variable named
247+
"WEBLOGIC_LOGGING_EXPORTER_CONFIG_FILE" and have it pointed to the configuration file.
248+
Refer to the later section for the content of this file.
249+
250+
Restart the domain, the domain logs will be posted to ElasticSearch. You can do the following curl
251+
command to verify that domain logs has been posted to Elasticsearch. The default index name is "wls",
252+
and docs.count should be greater than 0 indicating that log entries is being sent to ElasticSearch.
253+
254+
```
255+
$ curl "localhost:9200/_cat/indices?v"
256+
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
257+
yellow open wls q4Q2v2dXTBOyYsHZMdDe3H 5 1 23 0 101kb 101kb
258+
```
205259
206-
TBD. Update how to integrate this JAR into WebLogic Kubernetes operator.
207260
208261
## Contributing
209262

0 commit comments

Comments
 (0)