Recommended ingestion configuration
Ingesting log data is a key step to ensure you parse your log data correctly before that data enters Chronosphere Observability Platform.
Although you can use your existing ingestion pipeline, Chronosphere recommends using Core Agent or your existing logging processes in conjunction with Core Agent and Telemetry Pipeline.
To get started with ingesting logs using Telemetry Pipeline:
- Create an ingest API token.
- Choose which configuration you want to ingest log data:
Create an ingest API token
Before ingesting log data, you need to create an API token to authenticate with and ingest data to Observability Platform. See Ingest tokens (opens in a new tab) in the LogScale documentation for more information about creating ingest tokens.
To create an ingest API token, you must have administrative permissions.
- In the navigation menu select Explorers > Logs Explorer.
- Click Repository settings to open LogScale repository settings in a new tab.
- In the LogScale interface, select the repository you want to create an API token for.
- In the main LogScale navigation, click Settings.
- In the Ingest section of the sidebar navigation, click Ingest tokens.
- Click Add token to create a new ingest token.
- Enter a name for your token.
- Optional: Assign a parser for your token if you want to parse data during ingestion.
- Click Save to save your ingest token.
Store your ingest API token in a secure location. If you lose your token, you must create a new one.
Use this ingest API token in your Telemetry Pipeline configuration to authenticate with and begin sending log data to Observability Platform.
Core Agent
You can run Core Agent (opens in a new tab) as an agent that collects data from your app, parses that data, and sends the data directly to Observability Platform. Use this deployment method if:
- You're comfortable managing YAML-based configuration files.
- You plan on parsing data in Core Agent, and don't want to add Telemetry Pipeline as another component in your ingestion pipeline.
However, this method means you might need to write your own parser for complex configurations, whereas Telemetry Pipeline has built-in parsers for managing complex configurations. See Configure Core Agent for more information.
Configure Core Agent
Core Agent can be an agent that runs in your environment, a data collector, or serves both of these purposes. In this configuration, you run Core Agent as an agent that collects data from your app, parses that data, and sends the data directly to Observability Platform.
Complete the following steps to ingest data with Core Agent:
-
Add inputs (opens in a new tab) to your configuration file.
-
Add a
processors
collection to your configuration file to define which parsers to apply data transformations and filtering to incoming data records before processing data further in the pipeline. See Processors (opens in a new tab) for more information. -
Optional: Add filters (opens in a new tab) to your configuration file to enrich your data.
-
Define the output (opens in a new tab) destination for your data, which is your Observability Platform tenant. The full URL is:
https://ADDRESS.ingest.logs.chronosphere.io/
Replace
ADDRESS
with your company name prefixed to your Observability Platform instance that ends iningest.logs.chronosphere.io
. For example,MY_COMPANY
ingest.logs.chronosphere.io
.
Telemetry Pipeline
While you can run Core Agent on its own, you can also combine it with your existing logging processes to send data to Telemetry Pipeline to do your parsing there. Use this deployment method if:
- You want a graphical interface to manage your agents and pipeline configurations, rather than using YAML-based configuration files.
- You want the ability to run sample actions in the pipeline to preview your data transformations before applying the changes.
This method adds Telemetry Pipeline as another component in your ingestion pipeline. However, previewing your transformations means you can safely modify the parsing logic in your pipeline before making changes to your data. See Configure Core Agent plus Telemetry Pipeline for more information.
Configure Core Agent with Telemetry Pipeline
In this configuration, you run Core Agent as an agent in your environment that collects data and sends it to Telemetry Pipeline for processing. You parse your data in Telemetry Pipeline, and then send the processed data to Observability Platform. You can manage your Core Agent in Telemetry Pipeline.
Core Agent configuration
Complete the following steps in Core Agent:
- Create a YAML configuration file (opens in a new tab).
- Add inputs (opens in a new tab) to your configuration file.
- Define the output (opens in a new tab) destination for your data, which is Telemetry Pipeline.
Telemetry Pipeline configuration
Complete the following steps in Telemetry Pipeline:
- Create an ingest pipeline to read data from your application. You can transform, drop, and route data in a pipeline.
- Define a secret for your pipeline.
- Optional: Define a parser to determine which fields are extracted during ingest.
- Add processing rules to your ingest pipeline.