You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apl/data-types/map-fields.mdx
+29-3Lines changed: 29 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,14 @@ Support for creating your own map fields is coming in early 2025. To express int
14
14
15
15
## Benefits and drawbacks of map fields
16
16
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.
18
18
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:
20
25
- Querying map fields uses more query-hours than querying conventional fields.
21
26
- Map fields don’t compress as well as conventional fields. This means datasets with map fields use more storage.
22
27
- 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
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 <imgsrc="/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).
Copy file name to clipboardExpand all lines: query-data/datasets.mdx
+31-32Lines changed: 31 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,18 +11,9 @@ In Axiom, an individual piece of data is an event, and a dataset is a collection
11
11
12
12
## Datasets overview
13
13
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.
15
15
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:
26
17
- String
27
18
- Number
28
19
- Boolean
@@ -31,12 +22,19 @@ The field types are the following:
31
22
32
23
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.
33
24
25
+
On the right, you see the following:
26
+
-[Starred queries](#starred-queries)
27
+
-[Query history](#query-history)
28
+
34
29
### Edit field
35
30
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 <imgsrc="/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.
40
38
41
39
## Quick charts
42
40
@@ -47,33 +45,34 @@ Quick charts allow fast charting of fields depending on their field type. For ex
47
45
48
46
## Virtual fields
49
47
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.
51
49
52
50
To manage a dataset’s virtual fields, click <imgsrc="/doc-assets/icons/virtual-fields.svg"className="inline-icon"alt="Virtual fields icon" /> in the toolbar.
53
51
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
+
54
58
## Queries
55
59
56
60
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.
59
61
- 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.
60
63
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 <imgsrc="/doc-assets/icons/single-user.svg"className="inline-icon"alt="Single user icon" /> your queries or <imgsrc="/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
68
65
69
-
### Saved queries
66
+
To find and run previously starred queries:
70
67
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 <imgsrc="/doc-assets/icons/single-user.svg"className="inline-icon"alt="Single user icon" /> your queries or <imgsrc="/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 <imgsrc="/doc-assets/icons/single-user.svg"className="inline-icon"alt="Single user icon" /> your queries or <imgsrc="/doc-assets/icons/many-users.svg"className="inline-icon"alt="Many users icon" /> your team’s queries.
75
70
1. Find the query in the list, and then click it to run the query.
76
71
77
-
### Starred queries
72
+
### Query history
73
+
74
+
To find and run recent queries:
78
75
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 <imgsrc="/doc-assets/icons/single-user.svg"className="inline-icon"alt="Single user icon" /> your queries or <imgsrc="/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.
Copy file name to clipboardExpand all lines: send-data/aws-s3.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,4 +128,4 @@ Ensure the log file you upload to the S3 bucket is in the correct format, such a
128
128
]
129
129
```
130
130
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.
- In the Axiom UI, [create a dataset](/reference/datasets#create-dataset).
37
33
38
34
-**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.
0 commit comments