Skip to content

Commit

Permalink
Modification to queries
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed Nov 19, 2024
1 parent 6a1667a commit 2261e03
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions terraform/shared/modules/newrelic/logreview.tf
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,11 @@ resource "newrelic_one_dashboard" "log_review_dashboard" {
height = 3

nrql_query {
query = "SELECT `message` FROM Log WHERE allColumnSearch('POST', insensitive: true) AND allColumnSearch('/submission/', insensitive: true) AND `newrelic.source` = 'logs.APM' AND entity.name ='${var.cf_space_name}' SINCE 2 hours ago"
query = "SELECT `timestamp`,`message` FROM Log WHERE allColumnSearch('STARTUP_CHECK', insensitive: true) AND `message` LIKE '%db_to_s3%' AND `message` LIKE '%PASS%' AND `tags.space_name` = '${var.cf_space_name}' SINCE 2 hours ago"
}
nrql_query {
query = "SELECT `message`,`timestamp` FROM Log WHERE allColumnSearch('STARTUP_CHECK', insensitive: true) AND `message` LIKE '%db_to_s3%' AND `message` LIKE '%PASS%' AND tags.space_name ='${var.cf_space_name}' SINCE 2 hours ago"
query = "SELECT `message` FROM Log WHERE allColumnSearch('POST', insensitive: true) AND allColumnSearch('/submission/', insensitive: true) AND `newrelic.source` = 'logs.APM' AND `entity.name` = 'gsa-fac-${var.cf_space_name}' SINCE 2 hours ago"
}

legend_enabled = true
}
widget_table {
Expand All @@ -309,12 +308,11 @@ resource "newrelic_one_dashboard" "log_review_dashboard" {
height = 3

nrql_query {
query = "SELECT `message` FROM Log WHERE `tags.space_name` = '${var.cf_space_name}' AND allColumnSearch('\"TABLEROWCOUNT\"', insensitive: true) SINCE 2 hours ago"
query = "SELECT `timestamp`,`message` FROM Log WHERE allColumnSearch('STARTUP_CHECK', insensitive: true) AND `message` LIKE '%db_to_s3%' AND `message` LIKE '%PASS%' AND `tags.space_name` = '${var.cf_space_name}' SINCE 2 hours ago"
}
nrql_query {
query = "SELECT `message`,`timestamp` FROM Log WHERE allColumnSearch('STARTUP_CHECK', insensitive: true) AND `message` LIKE '%db_to_s3%' AND `message` LIKE '%PASS%' AND tags.space_name ='${var.cf_space_name}' SINCE 2 hours ago"
query = "SELECT `message` FROM Log WHERE `tags.space_name` = '${var.cf_space_name}' AND allColumnSearch('\"TABLEROWCOUNT\"', insensitive: true) SINCE 2 hours ago"
}

legend_enabled = true
}
widget_table {
Expand Down

0 comments on commit 2261e03

Please sign in to comment.