-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19175 from rpastrana/HPCC-32761-ALA-BlobMode
HPCC-32761 ALA LogAccess Blob Mode Reviewed-by: Gavin Halliday <[email protected]> Merged-by: Gavin Halliday <[email protected]>
- Loading branch information
Showing
4 changed files
with
248 additions
and
20 deletions.
There are no files selected for viewing
103 changes: 103 additions & 0 deletions
103
helm/examples/azure/log-analytics/loganalytics-hpcc-logaccessV1Blob.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# Configures HPCC logAccess to target Azure Log Analytics Workspace | ||
global: | ||
logAccess: | ||
name: "Azure LogAnalytics LogAccess" | ||
type: "AzureLogAnalyticsCurl" | ||
blobMode: "true" | ||
#connection: | ||
#All connection attributes are optional. | ||
#It is preferable to provide connection values as secret values category 'esp', secret name 'azure_logaccess' | ||
# NOTE: secret 'azure_logaccess' must include 'aad-client-secret' and it cannot be provided in configuration | ||
# | ||
#workspaceID: "XYZ" #ID of the Azure LogAnalytics workspace to query logs from | ||
# Secret value equivalent: 'ala-workspace-id' | ||
#clientID: "DEF" #ID of Azure Active Directory registered application with api.loganalytics.io access - format: 00000000-0000-0000-0000-000000000000 | ||
# Secret value equivalent: 'aad-client-id' | ||
#tenantID: "ABC" #The Azure Active Directory Tenant ID, required for KQL API access | ||
# Secret value equivalent: 'aad-tenant-id' | ||
logMaps: | ||
- type: "global" | ||
storeName: "ContainerLog" | ||
searchColumn: "LogEntry" | ||
columnType: "string" | ||
columnMode: "MIN" | ||
timeStampColumn: "TimeGenerated" | ||
- type: "workunits" | ||
searchColumn: "LogEntry" | ||
columnMode: "DEFAULT" | ||
columnType: "string" | ||
- type: "components" | ||
storeName: "ContainerInventory" | ||
searchColumn: "Name" | ||
keyColumn: "ContainerID" | ||
columnMode: "MIN" | ||
columnType: "string" | ||
timeStampColumn: "TimeGenerated" | ||
disableJoins: false #Potentially expensive join operations needed to fetch a certain column can be disabled | ||
- type: "audience" | ||
searchColumn: "LogEntry" | ||
enumValues: | ||
- code: OPR | ||
- code: USR | ||
- code: PRO | ||
- code: ADT | ||
- code: MON | ||
columnMode: "DEFAULT" | ||
columnType: "enum" | ||
- type: "class" | ||
searchColumn: "LogEntry" | ||
enumValues: | ||
- code: DIS | ||
- code: ERR | ||
- code: WRN | ||
- code: INF | ||
- code: PRO | ||
- code: MET | ||
- code: EVT | ||
columnMode: "DEFAULT" | ||
columnType: "enum" | ||
- type: "instance" | ||
columnMode: "DEFAULT" | ||
searchColumn: "Computer" | ||
columnMode: "ALL" | ||
columnType: "string" | ||
- type: "message" | ||
searchColumn: "LogEntry" | ||
columnMode: "MIN" | ||
columnType: "string" | ||
- type: "logid" | ||
searchColumn: "LogEntry" | ||
columnMode: "DEFAULT" | ||
columnType: "string" | ||
- type: "processid" | ||
searchColumn: "LogEntry" | ||
columnMode: "ALL" | ||
columnType: "string" | ||
- type: "threadid" | ||
searchColumn: "LogEntry" | ||
columnMode: "DEFAULT" | ||
columnType: "string" | ||
- type: "timestamp" | ||
searchColumn: "TimeGenerated" | ||
columnMode: "MIN" | ||
columnType: "Timestamp" | ||
#- type: "pod" | ||
# searchColumn: "PodName" | ||
# columnMode: "DEFAULT" | ||
# columnType: "string" | ||
- type: "spanid" | ||
searchColumn: "LogEntry" | ||
columnMode: "DEFAULT" | ||
columnType: "string" | ||
- type: "traceid" | ||
searchColumn: "LogEntry" | ||
columnMode: "DEFAULT" | ||
columnType: "string" | ||
secrets: | ||
esp: | ||
azure-logaccess: "azure-logaccess" | ||
vaults: | ||
esp: | ||
- name: my-azure-logaccess-vault | ||
url: http://${env.VAULT_SERVICE_HOST}:${env.VAULT_SERVICE_PORT}/v1/secret/data/esp/${secret} | ||
kind: kv-v2 |
101 changes: 101 additions & 0 deletions
101
helm/examples/azure/log-analytics/loganalytics-hpcc-logaccessV2Blob.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# Configures HPCC logAccess to target Azure Log Analytics Workspace | ||
global: | ||
logAccess: | ||
name: "Azure LogAnalytics LogAccess" | ||
type: "AzureLogAnalyticsCurl" | ||
blobMode: "true" | ||
#connection: | ||
#All connection attributes are optional. | ||
#It is preferable to provide connection values as secret values category 'esp', secret name 'azure_logaccess' | ||
# NOTE: secret 'azure_logaccess' must include 'aad-client-secret' and it cannot be provided in configuration | ||
# | ||
#workspaceID: "XYZ" #ID of the Azure LogAnalytics workspace to query logs from | ||
# Secret value equivalent: 'ala-workspace-id' | ||
#clientID: "DEF" #ID of Azure Active Directory registered application with api.loganalytics.io access - format: 00000000-0000-0000-0000-000000000000 | ||
# Secret value equivalent: 'aad-client-id' | ||
#tenantID: "ABC" #The Azure Active Directory Tenant ID, required for KQL API access | ||
# Secret value equivalent: 'aad-tenant-id' | ||
logMaps: | ||
- type: "global" | ||
storeName: "ContainerLogV2" | ||
searchColumn: "LogMessage" | ||
columnType: "dynamic" | ||
columnMode: "MIN" | ||
timeStampColumn: "TimeGenerated" | ||
- type: "workunits" | ||
searchColumn: "LogMessage" | ||
columnMode: "DEFAULT" | ||
columnType: "string" | ||
- type: "components" | ||
storeName: "ContainerLogV2" | ||
searchColumn: "ContainerName" # Container name happens to coincide with component name | ||
keyColumn: "ContainerName" | ||
columnMode: "DEFAULT" | ||
columnType: "string" | ||
- type: "audience" | ||
searchColumn: "LogMessage" | ||
enumValues: | ||
- code: OPR | ||
- code: USR | ||
- code: PRO | ||
- code: ADT | ||
- code: MON | ||
columnMode: "DEFAULT" | ||
columnType: "enum" | ||
- type: "class" | ||
searchColumn: "LogMessage" | ||
enumValues: | ||
- code: DIS | ||
- code: ERR | ||
- code: WRN | ||
- code: INF | ||
- code: PRO | ||
- code: MET | ||
- code: EVT | ||
columnMode: "DEFAULT" | ||
columnType: "enum" | ||
- type: "instance" | ||
columnMode: "DEFAULT" | ||
searchColumn: "Computer" | ||
columnMode: "ALL" | ||
columnType: "string" | ||
- type: "message" | ||
searchColumn: "LogMessage" | ||
columnMode: "MIN" | ||
columnType: "string" | ||
- type: "logid" | ||
searchColumn: "LogMessage" | ||
columnMode: "DEFAULT" | ||
columnType: "string" | ||
- type: "processid" | ||
searchColumn: "LogMessage" | ||
columnMode: "ALL" | ||
columnType: "string" | ||
- type: "threadid" | ||
searchColumn: "LogMessage" | ||
columnMode: "DEFAULT" | ||
columnType: "string" | ||
- type: "timestamp" | ||
searchColumn: "LogMessage" | ||
columnMode: "MIN" | ||
columnType: "string" | ||
- type: "pod" | ||
searchColumn: "PodName" | ||
columnMode: "DEFAULT" | ||
columnType: "string" | ||
- type: "spanid" | ||
searchColumn: "LogMessage" | ||
columnMode: "DEFAULT" | ||
columnType: "string" | ||
- type: "traceid" | ||
searchColumn: "LogMessage" | ||
columnMode: "DEFAULT" | ||
columnType: "string" | ||
secrets: | ||
esp: | ||
azure-logaccess: "azure-logaccess" | ||
vaults: | ||
esp: | ||
- name: my-azure-logaccess-vault | ||
url: http://${env.VAULT_SERVICE_HOST}:${env.VAULT_SERVICE_PORT}/v1/secret/data/esp/${secret} | ||
kind: kv-v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters