Exporters
Lunar.dev Exporters allow you to store logs from your processors, enabling better monitoring and analysis of your systemโs behavior.
Logs can be exported in two ways:
- Local File Export โ Save logs to a specified location.
- Cloud Storage Export โ Send logs to a Google Cloud Storage (GCP) or Amazon S3 bucket.
Logs are written automatically as they are generated, ensuring that you always have up-to-date insights into your system's performance.
Configuring Exportersโ
All export configurations are managed within gateway_config.yaml
. Below is an example for each type of configuration:
/etc/lunar-proxy/gateway_config.yaml
exporters:
file: #Local Exporter
exporter_id: my_file_exporter
file_dir: "/var/log/lunar-proxy" # Directory where HAR files will be stored
file_name: "transaction.log" # Naming pattern for log files
cloud: #Cloud Exporter
exporter_id: <exporter id>
type: "s3"/"gcp"
bucket_name: <bucket name>
region: <region name>
note
You can only have one cloud exporter, meaning either Amazon s3 or GCP. The example above shows how you can configure each one.
Exporter Processor Requirementโ
In order for logs to be exported, your flow must use the HAR Exporter Processor. Without this, logs will not be recorded or sent to the specified destination.