Stdin Device Input
Configures a stdin device input from which to read log/trace events to transform into typed TenXObjects.
Configuration
To configure the stdin device input module, Edit these settings.
Below is the default configuration from: stdin/config.yaml.
ewogICJ0eXBlIiA6ICJvYmplY3QiLAogICJwcm9wZXJ0aWVzIiA6IHsKICAgICJpbmNsdWRlIiA6IHsKICAgICAgInR5cGUiIDogInN0cmluZyIKICAgIH0sCiAgICAidGVueCIgOiB7CiAgICAgICJ0eXBlIiA6ICJzdHJpbmciCiAgICB9LAogICAgInN0ZGluIiA6IHsKICAgICAgInR5cGUiIDogIm9iamVjdCIsCiAgICAgICJhZGRpdGlvbmFsUHJvcGVydGllcyIgOiBmYWxzZSwKICAgICAgInByb3BlcnRpZXMiIDogewogICAgICAgICJlbmFibGVkIiA6IHsKICAgICAgICAgICJ0eXBlIiA6IFsKICAgICAgICAgICAgImJvb2xlYW4iLAogICAgICAgICAgICAic3RyaW5nIgogICAgICAgICAgXSwKICAgICAgICAgICJtYXJrZG93bkRlc2NyaXB0aW9uIiA6ICJFbmFibGUvZGlzYWJsZSBzdGRpbiBpbnB1dFxuXG5TcGVjaWZpZXMgd2hldGhlciB0byByZWFkIGV2ZW50IGRhdGEgZnJvbSB0aGUgc3RkaW4gcGlwZSAoQWNjZXB0cyBib29sZWFuIG9yIHN0cmluZyB3aXRoICQ9IHByZWZpeCBmb3IgcnVudGltZSBldmFsdWF0aW9uKSAoRGVmYXVsdDogdHJ1ZSkiLAogICAgICAgICAgImRlZmF1bHQiIDogdHJ1ZQogICAgICAgIH0sCiAgICAgICAgImV4dHJhY3RvcnMiIDogewogICAgICAgICAgInR5cGUiIDogWwogICAgICAgICAgICAiYXJyYXkiLAogICAgICAgICAgICAibnVsbCIKICAgICAgICAgIF0sCiAgICAgICAgICAibWFya2Rvd25EZXNjcmlwdGlvbiIgOiAiSlNPTiAvIHJlZ2V4IGV4dHJhY3RvciBuYW1lc1xuXG5EZWZpbmVzIGEgbGlzdCBvZiBKU09OL3JlZ2V4IGV4dHJhY3RvciB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9zdCBvcmlnaW4gYnkgd2hpY2ggVGVuWE9iamVjdHMgcmVhZCBmcm9tIHRoaXMgaW5wdXQgYXJlIGFnZ3JlZ2F0ZWQgYW5kIHdyaXR0ZW4gdG8gb3V0cHV0LiBUaGUgW3NvdXJjZV0oaHR0cHM6Ly9kb2MubG9nMTB4LmNvbS9hcGkvanMvI1RlblhPYmplY3Qrc291cmNlKSBtZW1iZXIgcmV0dXJucyBlYWNoIFRlblhPYmplY3QncyBhc3NpZ25lZCB2YWx1ZS4iCiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfSwKICAiYWRkaXRpb25hbFByb3BlcnRpZXMiIDogZmFsc2UKfQ==
# 🔟❎ 'run' Stdin input configuration
# Configure a stdin event input. To learn more see https://doc.log10x.com/run/input/stdin/
# Set the 10x pipeline to 'run'
tenx: run
# =============================== Dependencies ================================
include: run/modules/input/stdin
# =============================== Stdin Options ===============================
# NOTE: a pipeline should configure no more than a single stdin input
stdin:
# ---------------------------- Parsing Options ----------------------------
# 'extractors' defines a list of JSON/regex extractor names
# used to capture and redact event values from 'path' to transform
# into TenXObjects. To learn more see: https://doc.log10x.com/run/input/extract
extractors: [
]
# 'sourcePattern' defines a regex pattern that captures a 'source' value
# for each event read from the file and transformed into an TenXObject.
# This value will be used to sequence all events sharing this 'source' value correctly
# so they are not mixed with events originating from different locations.
sourcePattern: null
Options
Specify the options below to configure the stdin device input:
| Name | Description |
|---|---|
| stdinEnabled | Enable/disable stdin input |
| stdinExtractors | JSON / regex extractor names |
| stdinSourcePattern | Event source capture regex pattern |
stdinEnabled
Enable/disable stdin input.
| Type | Default |
|---|---|
| Boolean | true |
Specifies whether to read event data from the stdin pipe.
stdinExtractors
JSON / regex extractor names.
| Type | Default |
|---|---|
| List | [] |
Defines a list of JSON/regex extractor names to capture events from 'inputFilePath' to transform into TenXObjects. Each item in the list should map to an extractor defined via a configuration file or startup arguments group. To learn more see: extractors.
stdinSourcePattern
Event source capture regex pattern.
| Type | Default |
|---|---|
| String | "" |
Defines a regex pattern to capture 'source' values for each transformed TenXObject. Tags provide a method for sequencing TenXObjects read from this input value in separate logical queues. For example, capturing a 'host' or 'fileName' value as a 'source' creates a separate logical queue for each unique file/host origin by which TenXObjects read from this input are aggregated and written to output. The source member returns each TenXObject's assigned value.
This module is defined in stdin/module.yaml.