mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 15:15:57 +08:00
chore: update onboarding docs to send logs from the end with a note for about beginning (#4374)
This commit is contained in:
parent
26d6a869c6
commit
0c1a500142
@ -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).
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user