Skip to content

Commit

Permalink
Merge pull request #198 from Olog/shroffk-patch-1
Browse files Browse the repository at this point in the history
update docs
  • Loading branch information
shroffk committed Sep 26, 2024
2 parents f5022c4 + f39497b commit 2ec0650
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,47 @@ mvn org.springframework.boot:spring-boot-maven-plugin:run
#### Check if service is running

Once the service is running, the service consists of a welcome page `http://localhost:8080/Olog`
which will provide information about the version of the Olog service running,

```
$ curl http://localhost:8080/Olog
{
"name" : "Olog Service",
"version" : "5.0.0-SNAPSHOT",
"elastic" : {
"status" : "Connected",
"clusterName" : "elastic-nasa",
"clusterUuid" : "QNeYpFlWRueYPH3uXGUiGw",
"version" : "co.elastic.clients.elasticsearch._types.ElasticsearchVersionInfo@79c2137f",
"elasticHost" : "localhost",
"elasticPort" : "9200"
},
"mongoDB" : "{type=STANDALONE, servers=[{address=localhost:27017, type=STANDALONE, roundTripTime=1.2 ms, state=CONNECTED}]",
"serverConfig" : {
"maxFileSize" : 50.0,
"maxRequestSize" : 100.0
}
}
```

This will provide information about the version of the Olog service running,
along with information about the version and connection status of the elastic and mongo
backends.

An example for testing the creation of a single test log entry with the demo credentials

```
curl --location --insecure --request PUT 'https://localhost:8181/Olog/logs' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic YWRtaW46YWRtaW5QYXNz' \
--data '{
"owner": "test-owner",
"source": "This is an test entry",
"title": "Tes title",
"level": "Info",
"logbooks": [{"name": "operations","owner": "olog-logs"}]
}'
```

### Running using Docker Compose

**Prerequisites**
Expand Down

0 comments on commit 2ec0650

Please sign in to comment.