-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from castai/stdout_example
docs: example for writing JSON logs to stdout
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
receivers: | ||
castai_audit_logs: | ||
api: | ||
url: ${env:CASTAI_API_URL} # Use CASTAI_API_URL env variable to override default API URL (https://api.cast.ai/) | ||
key: ${env:CASTAI_API_KEY} # Use CASTAI_API_KEY env variable to provide API Access Key | ||
poll_interval_sec: 10 # This parameter defines poll cycle in seconds. | ||
page_limit: 100 # This parameter defines the max number of records returned from the backend in one page. | ||
storage: | ||
type: "persistent" | ||
filename: "./audit_logs_poll_data.json" | ||
|
||
exporters: | ||
file: | ||
path: /dev/stdout # Write logs directly to stdout in JSON format | ||
flush_interval: 100ms | ||
|
||
processors: | ||
|
||
service: | ||
telemetry: | ||
logs: | ||
level: "error" | ||
pipelines: | ||
logs: | ||
receivers: [castai_audit_logs] | ||
processors: [] | ||
exporters: [file] |