-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into file-input-label-regex
- Loading branch information
Showing
6 changed files
with
217 additions
and
9 deletions.
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,37 @@ | ||
## `drop_output` operator | ||
|
||
The `drop_output` operator does nothing. Useful for discarding entries while troubleshooting Stanza during development. | ||
|
||
### Configuration Fields | ||
|
||
Operator `drop_output` does not have configuration | ||
|
||
### Example Configurations | ||
|
||
Configuration | ||
```yaml | ||
pipeline: | ||
- type: stdin | ||
- type: drop_output | ||
``` | ||
Send a message: | ||
```bash | ||
echo "hello world" | ./stanza -c ./config.yaml | ||
``` | ||
|
||
There will be no output: | ||
```json | ||
{"level":"info","timestamp":"2021-08-20T20:09:55.057-0400","message":"Starting stanza agent"} | ||
{"level":"info","timestamp":"2021-08-20T20:09:55.057-0400","message":"Stanza agent started"} | ||
{"level":"info","timestamp":"2021-08-20T20:09:55.057-0400","message":"Stdin has been closed","operator_id":"$.stdin","operator_type":"stdin"} | ||
``` | ||
|
||
Compare with `stdout` output operator: | ||
```json | ||
{"level":"info","timestamp":"2021-08-20T20:09:28.314-0400","message":"Starting stanza agent"} | ||
{"level":"info","timestamp":"2021-08-20T20:09:28.314-0400","message":"Stanza agent started"} | ||
{"timestamp":"2021-08-20T20:09:28.314776719-04:00","severity":0,"record":"hello world"} | ||
{"level":"info","timestamp":"2021-08-20T20:09:28.314-0400","message":"Stdin has been closed","operator_id":"$.stdin","operator_type":"stdin"} | ||
``` | ||
|
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
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