-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add Archive Search documentation #32032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Preview links (active after the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @estherk15 looks good just a few suggestions!
This feature supports logs archived through: | ||
|
||
- [Datadog Log Management archives][1] | ||
- [Observability Pipelines archives][2] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- [Observability Pipelines archives][2] | |
- [Observability Pipelines archives][2] |
this links to https://docs.datadoghq.com/observability_pipelines/destinations/amazon_s3/, just want to ensure this is correct ?
Co-authored-by: Alicia Thuerk <26307719+git-thuerk-done@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates, looks good! I had one last comment on this link but approved :)
#32032 (comment)
|
||
### Typical use cases | ||
|
||
Archive Search is ideal when you need to query logs that are stored but not indexed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we say "Stored in External Archive" to make it clearer ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Archive Search is ideal when you need to query logs that are stored but not indexed. | |
Archive Search is ideal when you need to query logs that are stored in an external archive but not indexed. |
|
||
To improve query performance and reduce scan volume: | ||
- Narrow the time range and use selective filters. | ||
- Filter on **indexed attributes** such as `transaction_id` or `user_id`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will not be available day 1 of the preview
(configuring indexed attribute and optimize search against it) - can we remove it for now? should come end of the quarter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Filter on **indexed attributes** such as `transaction_id` or `user_id`. |
|
||
### Adding role delegation to S3 archives | ||
|
||
Datadog only supports rehydrating from archives that have been configured to use role delegation to grant access. After you have modified your Datadog IAM role to include the IAM policy above, ensure that each archive in your [archive configuration page][3] has the correct AWS Account + Role combination. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we rename to "searching"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Datadog only supports rehydrating from archives that have been configured to use role delegation to grant access. After you have modified your Datadog IAM role to include the IAM policy above, ensure that each archive in your [archive configuration page][3] has the correct AWS Account + Role combination. | |
Datadog only supports searching from archives that have been configured to use role delegation to grant access. After you have modified your Datadog IAM role to include the IAM policy above, ensure that each archive in your [archive configuration page][3] has the correct AWS Account + Role combination. |
|
||
## Cloud-specific permissions | ||
|
||
Datadog requires the permission to read from your archives to rehydrate content from them. This permission can be changed at any time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to "searching"?
|
||
### Typical use cases | ||
|
||
Archive Search is ideal when you need to query logs that are stored but not indexed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Archive Search is ideal when you need to query logs that are stored but not indexed. | |
Archive Search is ideal when you need to query logs that are stored in an external archive but not indexed. |
From the **Archive Search list view**, you can: | ||
|
||
- **Stop** a running search: preserves logs already retrieved. | ||
- **Delete** a completed search: removes results and metadata. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- **Delete** a completed search: removes results and metadata. |
- **Delete** a completed search: removes results and metadata. | ||
- **Duplicate** a search: opens the Archive Search creation form with the same parameters for efficient reruns. | ||
|
||
{{< img src="logs/archive_search/list_view.png" alt="Archive Search list view showing stop, delete, and duplicate options" style="width:90%;" >}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to update this image since delete is not going to be available as an option
{{< img src="logs/archive_search/list_view.png" alt="Archive Search list view showing stop, delete, and duplicate options" style="width:90%;" >}} |
|
||
To improve query performance and reduce scan volume: | ||
- Narrow the time range and use selective filters. | ||
- Filter on **indexed attributes** such as `transaction_id` or `user_id`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Filter on **indexed attributes** such as `transaction_id` or `user_id`. |
|
||
## Cloud-specific permissions | ||
|
||
Datadog requires the permission to read from your archives to rehydrate content from them. This permission can be changed at any time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Datadog requires the permission to read from your archives to rehydrate content from them. This permission can be changed at any time. | |
Datadog requires the permission to read your archives to search content from them. This permission can be changed at any time. |
|
||
### Adding role delegation to S3 archives | ||
|
||
Datadog only supports rehydrating from archives that have been configured to use role delegation to grant access. After you have modified your Datadog IAM role to include the IAM policy above, ensure that each archive in your [archive configuration page][3] has the correct AWS Account + Role combination. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Datadog only supports rehydrating from archives that have been configured to use role delegation to grant access. After you have modified your Datadog IAM role to include the IAM policy above, ensure that each archive in your [archive configuration page][3] has the correct AWS Account + Role combination. | |
Datadog only supports searching from archives that have been configured to use role delegation to grant access. After you have modified your Datadog IAM role to include the IAM policy above, ensure that each archive in your [archive configuration page][3] has the correct AWS Account + Role combination. |
|
||
{{% tab "Azure Storage" %}} | ||
|
||
Datadog uses an Azure AD group with the Storage Blob Data Contributor role scoped to your archives' storage account to rehydrate log events. You can grant this role to your Datadog service account from your storage account's Access Control (IAM) page by [assigning the Storage Blob Data Contributor role to your Datadog integration app][1]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Datadog uses an Azure AD group with the Storage Blob Data Contributor role scoped to your archives' storage account to rehydrate log events. You can grant this role to your Datadog service account from your storage account's Access Control (IAM) page by [assigning the Storage Blob Data Contributor role to your Datadog integration app][1]. | |
Datadog uses an Azure AD group with the Storage Blob Data Contributor role scoped to your archives' storage account to search log events. You can grant this role to your Datadog service account from your storage account's Access Control (IAM) page by [assigning the Storage Blob Data Contributor role to your Datadog integration app][1]. |
|
||
{{% tab "Google Cloud Storage" %}} | ||
|
||
In order to rehydrate log events from your archives, Datadog uses a service account with the Storage Object Viewer role. You can grant this role to your Datadog service account from the [Google Cloud IAM Admin page][1] by editing the service account's permissions, adding another role, and then selecting **Storage > Storage Object Viewer**. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to rehydrate log events from your archives, Datadog uses a service account with the Storage Object Viewer role. You can grant this role to your Datadog service account from the [Google Cloud IAM Admin page][1] by editing the service account's permissions, adding another role, and then selecting **Storage > Storage Object Viewer**. | |
In order to search log events from your archives, Datadog uses a service account with the Storage Object Viewer role. You can grant this role to your Datadog service account from the [Google Cloud IAM Admin page][1] by editing the service account's permissions, adding another role, and then selecting **Storage > Storage Object Viewer**. |
What does this PR do? What is the motivation?
Merge instructions
Merge readiness:
Do not merge Pending PM approval