- 28 May 2025
- 1 Minute to read
- Print
- Dark
Stdin
- Updated on 28 May 2025
- 1 Minute to read
- Print
- Dark
This example is similar to the Syslog example above, except it uses the CLI Adapter and receives the data from the CLI's STDIN interface. This method is perfect for ingesting arbitrary logs on disk or from other applications locally.
Here's a breakdown of the above example:
lc_adapter
: simply the CLI Adapter.stdin
: the method the Adapter should use to collect data locally. Thestdin
value will simply ingest from the Adapter's STDIN.client_options.identity.installation_key=....
: the Installation Key value from LimaCharlie.client_options.identity.oid=....
: the Organization ID from LimaCharlie the installation key above belongs to.client_options.platform=text
: this indicates the type of data that will be received from this adapter. In this case it'stext
lines.client_options.mapping.parsing_re=....
: this is the parsing expression describing how to interpret the text lines and how to convert them to JSON.client_options.sensor_seed_key=....
: this is the value that identifies this instance of the Adapter. Record it to re-use the Sensor ID generated for this Adapter later if you have to re-install the Adapter.client_options.mapping.event_type_path=....
: specifies the field that should be interpreted as the "event_type" in LimaCharlie.