Skip to content

Commit 761a7e5

Browse files
manotothc-ehrlich
andauthored
Add new Datasets tab details, create map fields (#264)
Co-authored-by: Christopher Ehrlich <[email protected]>
1 parent fcf9101 commit 761a7e5

File tree

6 files changed

+63
-42
lines changed

6 files changed

+63
-42
lines changed

apl/data-types/map-fields.mdx

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ Support for creating your own map fields is coming in early 2025. To express int
1414

1515
## Benefits and drawbacks of map fields
1616

17-
The benefit of map fields is that you can store additional attributes without adding more fields. This is particularly useful when the shape of your data is unpredictable (for example, additional attributes added by OpenTelemetry instrumentation). Using map fields means that you can avoid reaching the field limit of a dataset.
17+
Map fields help you manage high-cardinality data by storing multiple key-value pairs within a single field. One of the benefits of map fields is that you can store additional attributes without adding more fields. This is particularly useful when the shape of your data is unpredictable (for example, additional attributes added by OpenTelemetry instrumentation). Using map fields means that you can avoid reaching the field limit of a dataset.
1818

19-
The drawbacks of map fields are the following:
19+
Use map fields in the following cases:
20+
- You approach the dataset field limit.
21+
- The shape of your data is unpredictable. For example, an OpenTelemetry instrumentation or another SDK creates objects with many keys.
22+
- You work with feature flags or custom attributes that generate many fields.
23+
24+
Map fields reduce impact on field limits, but involve trade-offs in query efficiency and compression. The drawbacks of map fields are the following:
2025
- Querying map fields uses more query-hours than querying conventional fields.
2126
- Map fields don’t compress as well as conventional fields. This means datasets with map fields use more storage.
2227
- You don’t have visibility into map fields from the schema. For example, autocomplete doesn’t know the properties inside the map field.
@@ -47,4 +52,25 @@ If an entity name has spaces (` `), dots (`.`), or dashes (`-`), you can only us
4752
- `where ['map.field']['property.name1']['property.name2'] == 14`
4853
- `where ['map.field'].property1.property2 == 14`
4954

50-
For more information, see [Entity names](/apl/entities/entity-names#quote-identifiers).
55+
For more information, see [Entity names](/apl/entities/entity-names#quote-identifiers).
56+
57+
## Create map fields
58+
59+
To create a map field:
60+
61+
1. Go to the Datasets tab.
62+
1. Select the dataset where you want to create the map field.
63+
1. In the top right of the fields list, click <img src="/doc-assets/icons/ellipsis-vertical.svg" className="inline-icon" alt="Vertical ellipsis icon" /> **More > Create map field**.
64+
1. In **Field name**, enter the full name of the field, including parent fields, if any. For example, `map_field_name`. For more information on syntax, see [Access properties of nested maps](#access-properties-of-nested-maps)
65+
1. Click **Create map field**.
66+
67+
## View map fields
68+
69+
To view map fields:
70+
1. Go to the Datasets tab.
71+
1. Select a dataset where you want to view map fields.
72+
1. Map fields are labelled in the following way:
73+
74+
- **MAPPED** means that the field was previously an ordinary field but at some point its parent was changed to a map field. Axiom adds new events to the field as an attribute of the parent map field. Events you ingested before the change retain the ordinary structure.
75+
- **UNUSED** means that the field is configured as a map field but you haven’t yet ingested data into it. Once ingested, data within this field won’t count toward your field limit.
76+
- **REMOVED** means that the field was configured as a map field but at some point it was changed to an ordinary field. Axiom adds new events to the field as usual. Events you ingested before the change retain the map structure. To fully remove this field, first [trim your dataset](/reference/datasets#trim-dataset) to remove the time period when map data was ingested, and then [vacuum the fields](/reference/datasets#vacuum-fields).

doc-assets/shots/datasets-cribl.png

-301 KB
Binary file not shown.

query-data/datasets.mdx

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,9 @@ In Axiom, an individual piece of data is an event, and a dataset is a collection
1111

1212
## Datasets overview
1313

14-
When you open the Datasets tab, you see the list of datasets on the left. To explore the fields in a dataset, select the dataset from the list on the left.
14+
When you open the Datasets tab, you see the list of datasets. To explore the fields in a dataset, select the dataset from the list on the left.
1515

16-
On the right, you see the following:
17-
- The list of integration dashboards appears on the Datasets overview page. These are prebuilt dashboards automatically generated by Axiom to enhance your experience. For more information, see [Apps](/apps).
18-
- The list of [starred queries](#starred-queries)
19-
- The [query history](#query-history)
20-
21-
## Fields list
22-
23-
When you select a dataset, Axiom displays the list of fields within the dataset.
24-
25-
The field types are the following:
16+
When you select a dataset, Axiom displays the list of fields within the dataset on the left. The field types are the following:
2617
- String
2718
- Number
2819
- Boolean
@@ -31,12 +22,19 @@ The field types are the following:
3122

3223
This view flattens field names with dot notation. This means that the event `{"foo": { "bar": "baz" }}` appears as `foo.bar`. Field names containing periods (`.`) are folded.
3324

25+
On the right, you see the following:
26+
- [Starred queries](#starred-queries)
27+
- [Query history](#query-history)
28+
3429
### Edit field
3530

36-
Click the field name to change the following:
37-
- Change the field description.
38-
- Change the field unit. This is only available for number field types.
39-
- Hide the field. This means that the field is still present in the underlying Axiom database, but it doesn’t appear in the Axiom UI. Use this option if you sent the field to Axiom by mistake or you don’t want to use it anymore in Axiom.
31+
To edit a field:
32+
33+
1. To the right of the field, click <img src="/doc-assets/icons/ellipsis-vertical.svg" className="inline-icon" alt="Vertical ellipsis icon" /> **More > Manage field**.
34+
1. Edit the following:
35+
- Field description.
36+
- Field unit. This is only available for number field types.
37+
- Hide the field. This means that the field is still present in the underlying Axiom database, but it doesn’t appear in the Axiom UI. Use this option if you sent the field to Axiom by mistake or you don’t want to use it anymore in Axiom.
4038

4139
## Quick charts
4240

@@ -47,33 +45,34 @@ Quick charts allow fast charting of fields depending on their field type. For ex
4745

4846
## Virtual fields
4947

50-
Virtual fields are powerful expressions that run on every event during a query to create new fields. The virtual fields are calculated from the events in the query using an APL expression. They’re similar to tools like derived columns in other products but super-charged with an expressive interpreter and with the flexibility to add, edit, or remove them any time.
48+
Virtual fields are powerful expressions that run on every event during a query to create new fields. The virtual fields are calculated from the events in the query using an APL expression. They’re similar to tools like derived columns in other products but super-charged with an expressive interpreter and with the flexibility to add, edit, or remove them at any time.
5149

5250
To manage a dataset’s virtual fields, click <img src="/doc-assets/icons/virtual-fields.svg" className="inline-icon" alt="Virtual fields icon" /> in the toolbar.
5351

52+
For more information, see [Virtual fields](/query-data/virtual-fields).
53+
54+
## Map fields
55+
56+
Map fields are a special type of field that can hold a collection of nested key-value pairs within a single field. You can think of the content of a map field as a JSON object. The Dataset tab enables you to create map fields, and view unused and removed map fields. For more information, see [Map fields](/apl/data-types/map-fields#create-map-fields).
57+
5458
## Queries
5559

5660
Every query has a unique ID that you can save and share with your team members. The Datasets tab allows you to do the following:
57-
- Find a past query.
58-
- Run previously saved queries.
5961
- Star a query so that you and your team members can easily find it in the future.
62+
- Browse previous queries and find a past query.
6063

61-
### Recent queries
62-
63-
To find and run recent queries:
64-
1. Click **Query library** in the toolbar.
65-
1. Click the **Recent** tab.
66-
1. Optional: In the top right, select whether to display <img src="/doc-assets/icons/single-user.svg" className="inline-icon" alt="Single user icon" /> your queries or <img src="/doc-assets/icons/many-users.svg" className="inline-icon" alt="Many users icon" /> your team’s queries.
67-
1. Find the query in the list, and then click it to run the query.
64+
### Starred queries
6865

69-
### Saved queries
66+
To find and run previously starred queries:
7067

71-
To find and run previously saved queries:
72-
1. Click **Query library** in the toolbar.
73-
1. Click the **Saved** tab.
74-
1. Optional: In the top right, select whether to display <img src="/doc-assets/icons/single-user.svg" className="inline-icon" alt="Single user icon" /> your queries or <img src="/doc-assets/icons/many-users.svg" className="inline-icon" alt="Many users icon" /> your team’s queries.
68+
1. Select a dataset.
69+
1. Optional: In the top right of the **Starred queries** section, select whether to display <img src="/doc-assets/icons/single-user.svg" className="inline-icon" alt="Single user icon" /> your queries or <img src="/doc-assets/icons/many-users.svg" className="inline-icon" alt="Many users icon" /> your team’s queries.
7570
1. Find the query in the list, and then click it to run the query.
7671

77-
### Starred queries
72+
### Query history
73+
74+
To find and run recent queries:
7875

79-
In the **Starred queries** section on the right, you see queries saved for future use. They’re great for keeping a list of useful queries for a dataset. All starred queries are shared with your team.
76+
1. Select a dataset.
77+
1. Optional: In the top right of the **Query history** section, select whether to display <img src="/doc-assets/icons/single-user.svg" className="inline-icon" alt="Single user icon" /> your queries or <img src="/doc-assets/icons/many-users.svg" className="inline-icon" alt="Many users icon" /> your team’s queries.
78+
1. Find the query in the list, and then click it to run the query.

send-data/aws-iot-rules.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ In **Rule actions**, select the action to send a message to a Lambda function, a
8080

8181
Use the AWS IoT Console, AWS CLI, or an MQTT client to publish messages to the topic that matches your rule. For example, `iot/topic`.
8282

83-
In Axiom, go to the Datasets tab and select the dataset you specified in the Lambda function. You now see your logs from your IoT devices in Axiom.
83+
In Axiom, go to the Stream tab and select the dataset you specified in the Lambda function. You now see your logs from your IoT devices in Axiom.

send-data/aws-s3.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,4 @@ Ensure the log file you upload to the S3 bucket is in the correct format, such a
128128
]
129129
```
130130

131-
After uploading a test log file to your S3 bucket, the Lambda function automatically processes the log data and sends it to Axiom. In Axiom, go to the Datasets tab and select the dataset you specified in the Lambda function. You now see your logs from your IoT devices in Axiom.
131+
After uploading a test log file to your S3 bucket, the Lambda function automatically processes the log data and sends it to Axiom. In Axiom, go to the Stream tab and select the dataset you specified in the Lambda function. You now see your logs from your IoT devices in Axiom.

send-data/cribl.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ Open Cribl’s UI and navigate to **Destinations > HTTP**. Click on `+` Add New
2929

3030
- **Name:** Choose a name for the destination.
3131

32-
- In the Axiom UI, click the Datasets tab and create your dataset by entering its name and description.
33-
34-
<Frame caption="Auth overview">
35-
<img src="/doc-assets/shots/datasets-cribl.png" alt="Auth overview" />
36-
</Frame>
32+
- In the Axiom UI, [create a dataset](/reference/datasets#create-dataset).
3733

3834
- **Endpoint URL:** Input the URL of your Axiom log ingest endpoint. This should be something like `https://api.axiom.co/v1/datasets/DATASET_NAME/ingest`. Replace `DATASET_NAME` with the name of your dataset.
3935

0 commit comments

Comments
 (0)