> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mezmo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Understanding Your Data to Optimize It

> Use the Mezmo Data Profiler to analyze streaming telemetry through Message Templates, Field Summaries, and Log Metrics before deciding how to optimize it.

Before you can optimize your data, you need to understand what it contains, and separate the useful data from the noise. Mezmo's Data Profiler feature enables you to get a detailed, granular view of the most common messages in your log data, and add processor components to handle specific message types.

## Create a Data Profile

There are two ways to generate a data profile:

1. As part of the [Mezmo Flow](/telemetry-pipelines/about-mezmo-flow) onboarding process or the Log Volume Reduction pipeline creation process.
2. Through the [Data Profiler Processor](/telemetry-pipelines/data-profiler-processor), which you can set it up as a component within a Pipeline that you build yourself.

## View the Data Profile

Once a Data Profile has been generated for the Source, you can access it through both the Processor itself, and the navigation in the Mezmo Web App.

<Frame caption="Screenshot showing how to view a data profile for a pipeline">
  <img src="https://mintcdn.com/mezmo-9a59581a/uS5U7z9j4833qA9M/images/shared/256x1stbrp1yjnas1wgpdzo9raamuqmvm5su3izvjh3zh65aezv901xk1yu0w92c.png?fit=max&auto=format&n=uS5U7z9j4833qA9M&q=85&s=3bf8d4f07139ea0b5fc4f9d941c21e89" alt="Image" width="2882" height="1606" data-path="images/shared/256x1stbrp1yjnas1wgpdzo9raamuqmvm5su3izvjh3zh65aezv901xk1yu0w92c.png" />
</Frame>

The Data Profiler analyzes streaming telemetry data using multiple techniques so that you can have improved insights based on the type of telemetry data . Analysis of the telemetry is organized in three different tabs in the report: **Message Templates,** **Field Summaries**, and **Log Metrics.**

**Message Templates** provide information on unstructured text messages, where **Field Summaries** provide better insights into structured data such as JSON logs.

### Message Templates

**The Message Templates** section provides a report of log patterns discovered in the data.  This enables you to understand how much specific log patterns contribute to the overall source volume, expressed as a percentage of the total data volume. With this information, you can determine if the logs matching the pattern are important for investigation and troubleshooting , or if they are low-value logs that can be archived and don't need to be sent to your observability platform.

The columns in the Message Templates section, which are all sortable, include:

* **Apps,** which shows the number of apps that produced these log patterns. You can hover on the number to see the name of the app(s) that produced the log pattern.
* **Template** shows the tokenized log lines with variables that change from message to message, such as IP or Host, and are replaced by`<*>`
* **Total Lines** shows the number of log lines that match this pattern
* **Total Line Size** shows the sum of all the log lines that match this pattern

You can see examples for each matching log sample by clicking the arrow next for each of the message templates.

<Frame caption="The Message Templates discovered by the Data Profiler, including the app that generated the selected template, and matching log samples">
  <img src="https://mintcdn.com/mezmo-9a59581a/uS5U7z9j4833qA9M/images/shared/n4ne4gy3m4qwyy6ekyolxr8nw5p4ovka0ehe6nj915goelfeg5zz0e840mt4dcro.png?fit=max&auto=format&n=uS5U7z9j4833qA9M&q=85&s=8fbcc6355f74b6f8032c5a886b93446d" alt="Image" width="1465" height="1414" data-path="images/shared/n4ne4gy3m4qwyy6ekyolxr8nw5p4ovka0ehe6nj915goelfeg5zz0e840mt4dcro.png" />
</Frame>

### Field Summaries

<Note>
  This is an experimental feature that is still in development. For access to this feature, reach out to your Customer Support Manager or [support@mezmo.com](mailto:support@mezmo.com).
</Note>

Field summaries provide the analysis of telemetry data from the perspective of field values.  The Field Summaries section provides a tabular view of all the Fields discovered from the events that are streaming through the pipeline during a profiler run. Click the arrow next to the field name to see the unique values  associated with the field. You can also apply Processors to those unique values.

Within the Field Summaries report, you will see:

| Report Column     | Description                                                                                                                                                                                                                                                                                                                                       |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Field Name**    | The name of the field.                                                                                                                                                                                                                                                                                                                            |
| **Unique Values** | Represents the count of the unique values found in all the logs during the profiling run. This indicates the cardinality of the field. Some fields can have a large number of unique values, however, the report will only display the first 500 unique values. The value displayed depends on the type of field, as described in the next table. |
| **Total Lines**   | Similar to the message templates, this column shows:<br /><br />The number of log events that contain this field.<br /><br />The percentage of logs that contain this field. The Percentage is calculated based on the total volume of data processed by the profiler during that specific run.                                                   |
| **Total Size**    | Similar to the message templates, this column shows:<br /><br />**S**ize of all the events containing this field.<br /><br />The number of events containing this field.                                                                                                                                                                          |
| **Field Size**    | This represents the volume contributed by the **field itself** as Bytes and % of the total volume. It includes the field name and value.  Using this information, you can decide to drop a field if it contains a large amount of data that is not important.                                                                                     |

You can also apply Processors based on **Field** or **Field Value**. At the **Field** level, you can only select Remove Field. At the **Field Value** level, you can apply Processors such as [Filter](/telemetry-pipelines/filter-processor), [Sample Processor](/telemetry-pipelines/sample-processor),  [Dedupe Processor](/telemetry-pipelines/dedupe-processor), and [Throttle Processor](/telemetry-pipelines/throttle-processor). If you remove a field at the Field level,  the Field Value processors are disabled because they are mutually exclusive.

This table describes the value displayed based on the value type:

| Value Type    | Displayed Value                                                                                                                            |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| **Boolean**   | The value itself.                                                                                                                          |
| **String**    | The value itself, up to the first 50 characters.                                                                                           |
| **Array**     | The length of the arrays found. For example, `[a, b, c]` is displayed as **3**.                                                            |
| **Object**    | Each unique value is the set of names of the keys. For example,`{a:1, b:2}` is displayed as **a, b**.                                      |
| **Float**     | Displays the min/max/average, no unique values.                                                                                            |
| **Timestamp** | Displays the min/max (no average), no unique values                                                                                        |
| **Integer**   | If cardinality is > the threshold (for example, 65), displays min/max/average. If cardinality is \< threshold, displays the unique values. |

<Frame caption="Field Summaries generated by the Data Profiler, showing the Unique Values associated with the `app` field.">
  <img src="https://mintcdn.com/mezmo-9a59581a/uS5U7z9j4833qA9M/images/shared/yw4nzl6ibf4zl1lxgee5m4p319he3lqzf7y7zr8uve9g71c6ypfu8kexknyh6wdb.png?fit=max&auto=format&n=uS5U7z9j4833qA9M&q=85&s=ef585a161867e7bbb2d79c861905c6a7" alt="Image" width="1456" height="1054" data-path="images/shared/yw4nzl6ibf4zl1lxgee5m4p319he3lqzf7y7zr8uve9g71c6ypfu8kexknyh6wdb.png" />
</Frame>

### Log Metrics

The **Log Metrics** section provides a report of the profiled logs categorized by **App**, **Host**, **Log Level** and **Log Type**:

<Frame caption="The Log Metrics analysis for an HTTP Shared Source">
  <img src="https://mintcdn.com/mezmo-9a59581a/uS5U7z9j4833qA9M/images/shared/ij9u9fei9i0mg47vnm7ze269kmmbc4u3d1ptu9zhoygmaoree1wh643zql7r2cm8.png?fit=max&auto=format&n=uS5U7z9j4833qA9M&q=85&s=4fd8260ce7df695e55fdfaf5d6aa8bfe" alt="Image" width="1942" height="802" data-path="images/shared/ij9u9fei9i0mg47vnm7ze269kmmbc4u3d1ptu9zhoygmaoree1wh643zql7r2cm8.png" />
</Frame>

###
