- 28 May 2025
- 1 Minute to read
- Print
- Dark
Stdin JSON
- Updated on 28 May 2025
- 1 Minute to read
- Print
- Dark
This example is similar to the Stdin example above, except it assumes the data being read is JSON, not just text. If your data source is already JSON, it's much simpler to let LimaCharlie do the JSON parsing directly.
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=json
: this indicates that the data read is already JSON, so just parse it as so.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.client_options.hostname=....
: specifies the sensor hostname for the adapter
Note that we did not need to specify a parsing_re
because the data ingested is not text, but already JSON, so the Parsing step is already done for us by setting a platform=json
.