-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add opensearch-dashboards and fluent-bit to retrieve docker logs (#170)
* Migration to opensearch * Implement indexes update on version change * Add opensearch-dashboard and logstash to retrieve docker logs * Replace logstash with fluent-bit to retrieve docker logs * Add running fluent-bit logging to OCI * Change fluent-bit supply to package delivery * Implement index cleanup every 30 days via lua script * Implement index cleanup via exec on timer * Optimize indexes update on version change * Add a check that fluent-bit has installed successfully * Add the dashboard location and authorization for it * Move dashboards location to router * Migration to opensearch in docspace.profiles.yml * Replace the naming with dashboards * Add password generation for /dashboards/
- Loading branch information
1 parent
6913c10
commit fde212c
Showing
12 changed files
with
143 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[SERVICE] | ||
Flush 1 | ||
Log_Level info | ||
Daemon off | ||
|
||
[INPUT] | ||
Name forward | ||
Listen 127.0.0.1 | ||
Port 24224 | ||
|
||
[INPUT] | ||
Name exec | ||
Interval_Sec 86400 | ||
Command curl -s -X POST 'OPENSEARCH_SCHEME://OPENSEARCH_HOST:OPENSEARCH_PORT/OPENSEARCH_INDEX/_delete_by_query' -H 'Content-Type: application/json' -d "{\"query\": {\"range\": {\"@timestamp\": {\"lt\": \"$(date -u -d '30 days ago' '+%Y-%m-%dT%H:%M:%S')\"}}}}" | ||
|
||
[OUTPUT] | ||
Name opensearch | ||
Match * | ||
Host OPENSEARCH_HOST | ||
Port OPENSEARCH_PORT | ||
Replace_Dots On | ||
Suppress_Type_Name On | ||
Time_Key @timestamp | ||
Type _doc | ||
Index OPENSEARCH_INDEX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: "3" | ||
services: | ||
onlyoffice-opensearch-dashboards: | ||
image: opensearchproject/opensearch-dashboards:${DASHBOARDS_VERSION} | ||
container_name: ${DASHBOARDS_CONTAINER_NAME} | ||
restart: always | ||
environment: | ||
- OPENSEARCH_HOSTS=${ELK_SHEME}://${ELK_CONTAINER_NAME}:${ELK_PORT} | ||
- "DISABLE_SECURITY_DASHBOARDS_PLUGIN=true" | ||
- "SERVER_BASEPATH=/dashboards" | ||
expose: | ||
- "5601" | ||
|
||
networks: | ||
default: | ||
name: ${NETWORK_NAME} | ||
external: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters