Sending logs to developers / DONE
Our software stack includes ElasticSearch and LogStash to collect logs. These logs do not contain private keys or passwords of your clients or administrators. The collection is conducted solely for the purpose of identifying and resolving errors. Logs are stored on our server for one month.
Disabling Log Transmission
If you wish to stop sending your server logs to our server, you need to execute a few commands on your server where the API service is hosted.
Add lines to the
/home/runner/api_server/.envfile:
```bash
SEND_LOGS=false
SEND_METRICS=false
```Restart the API service:
docker restart exchanger-api
Go to the directory with the
exchanger-api codeOpen the
.env fileAdd a line at the end of the file:
```bash
SEND_LOGS=false
SEND_METRICS=false
```Restart the
$projectName-logstashservice or all services:pm2 restart all
The service that is responsible for sending logs is called: $projectName-logstash
pm2 status
Using Self-Hosted ELK
Note: To use your own servers for log collection and analysis, you must have ELK (ElasticSearch, LogStash, Kibana) installed and configured. Ensure that your ELK environment is set up securely to prevent unauthorized access.
Update the environment file
/home/runner/api_server/.env:
```bash
LOGSTASH_INDEX="pm2"
LOGSTASH_TYPE="_doc"
LOGSTASH_URL="https://logstash.hostname"
```These parameters must be set according to your environment.  2. Restart the API service:
```bash
docker restart exchanger-api
```Last updated