chore: update onboarding docs to send logs from the end with a note for about beginning (#4374)

This commit is contained in:
Srikanth Chekuri 2024-01-18 20:02:25 +05:30 committed by GitHub
parent 26d6a869c6
commit 0c1a500142
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 16 additions and 6 deletions

View File

@ -9,11 +9,13 @@
...
filelog/app:
include: [ /tmp/app.log ]
start_at: beginning
start_at: end
...
```
`start_at: beginning` can be removed once you are done testing.
Replace `/tmp/app.log` with the path to your log file.
Note: change the `start_at` value to `beginning` if you want to read the log file from the beginning. It may be useful if you want to send old logs to SigNoz. The log records older than the standard log retention period (default 15 days) will be discarded.
For parsing logs of different formats you will have to use operators, you can read more about operators [here](https://signoz.io/docs/userguide/logs/#operators-for-parsing-and-manipulating-logs).

View File

@ -7,11 +7,13 @@ receivers:
...
filelog/app:
include: [ /tmp/app.log ]
start_at: beginning
start_at: end
...
```
Replace `/tmp/app.log` with the path to your log file.
Note: change the `start_at` value to `beginning` if you want to read the log file from the beginning. It may be useful if you want to send old logs to SigNoz. The log records older than the standard log retention period (default 15 days) will be discarded.
For more configurations that are available for syslog receiver please check [here](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver).
### Step 2: Include filelog receiver in the Pipeline

View File

@ -7,11 +7,13 @@ receivers:
...
filelog/app:
include: [ /tmp/app.log ]
start_at: beginning
start_at: end
...
```
Replace `/tmp/app.log` with the path to your log file.
Note: change the `start_at` value to `beginning` if you want to read the log file from the beginning. It may be useful if you want to send old logs to SigNoz. The log records older than the standard log retention period (default 15 days) will be discarded.
For more configurations that are available for syslog receiver please check [here](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver).
### Step 2: Include filelog receiver in the Pipeline

View File

@ -7,11 +7,13 @@ receivers:
...
filelog/app:
include: [ /tmp/app.log ]
start_at: beginning
start_at: end
...
```
Replace `/tmp/app.log` with the path to your log file.
Note: change the `start_at` value to `beginning` if you want to read the log file from the beginning. It may be useful if you want to send old logs to SigNoz. The log records older than the standard log retention period (default 15 days) will be discarded.
For more configurations that are available for syslog receiver please check [here](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver).
### Step 2: Include filelog receiver in the Pipeline

View File

@ -7,11 +7,13 @@ receivers:
...
filelog/app:
include: [ /tmp/app.log ]
start_at: beginning
start_at: end
...
```
Replace `/tmp/app.log` with the path to your log file.
Note: change the `start_at` value to `beginning` if you want to read the log file from the beginning. It may be useful if you want to send old logs to SigNoz. The log records older than the standard log retention period (default 15 days) will be discarded.
For more configurations that are available for syslog receiver please check [here](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver).
### Step 2: Include filelog receiver in the Pipeline