Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

applicative logs index patterns getting started docker #192

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ If you prefer to test this setup using Docker Compose, you can use the following
Under the `getting-started` section you can examine a live docker-compose sample:
```yaml
/csv_file/getting-started/fluent-bit
|-- docker-complete.yml
|-- docker-compose.yml
|-- data/
|-- fluent-bit.conf
|-- parsers.conf
|-- logs.csv

```
Use the [docker-compose](fluent-bit/docker-complete.yml) you can find a complete:
Use the [docker-compose](docker-compose.yml) you can find a complete:

`docker compose -f docker-complete.yml up -d` would instantiate the services and start sending the csv sample logs into an index.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,20 @@ services:
memlock:
soft: -1
hard: -1
volumes:
- opensearch-data:/usr/share/opensearch/data
ports:
- 9200:9200
- 9600:9600
networks:
- opensearch-net

fluent-bit:
image: fluent/fluent-bit:latest
container_name: fluent-bit
image: fluent/fluent-bit:latest
volumes:
- ./data:/fluent-bit/data
command: ["/fluent-bit/bin/fluent-bit", "-c", "/fluent-bit/data/fluent-bit.conf"]
depends_on:
- opensearch-node1
- ./logs:/logs
- ./fluent-bit:/fluent-bit/etc
ports:
- "24224:24224"
- "24224:24224/udp"
networks:
- opensearch-net

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[SERVICE]
Flush 1
Log_Level info
Log_Level debug
Parsers_File parsers.conf

[INPUT]
Name tail
Path /fluent-bit/data/*.csv
Parser csv
Tag csv
Name tail
Path /logs/*.csv
Parser csv_log
Tag csv_logs

[INPUT]
Name dummy
Expand All @@ -25,4 +25,10 @@
tls.verify Off
Suppress_Type_Name On
HTTP_User admin
HTTP_Passwd my_%New%_passW0rd!@#
HTTP_Passwd my_%New%_passW0rd!@#
Trace_Output On
Trace_Error On

[OUTPUT]
Name stdout
Match *

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[PARSER]
Name csv
Name csv_log
Format regex
Regex ^(?<timestamp>[^,]+),(?<log_level>[^,]+),(?<message>[^,]+),(?<application>[^,]+),(?<host>[^,]+)$
Regex ^(?<timestamp>[^,]+),(?<log_level>[^,]+),(?<message>.*),(?<application>[^,]+),(?<host>[^,]+)$
Time_Key timestamp
Time_Format %Y-%m-%d %H:%M:%S
Time_Format %Y-%m-%d %H:%M:%S
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Match *
Port 9200
Type _doc
Index applicative_logs
Index applicative_logs-golang
tls On
tls.verify Off
Suppress_Type_Name On
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Match *
Port 9200
Type _doc
Index applicative_logs
Index applicative_logs-java
tls On
tls.verify Off
Suppress_Type_Name On
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Match *
Port 9200
Type _doc
Index applicative_logs
Index applicative_logs-python
tls On
tls.verify Off
Suppress_Type_Name On
Expand Down