Skip to content

Commit

Permalink
Update goldens.
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscovalentecastro committed Apr 12, 2024
1 parent 3f2b005 commit 38458ca
Show file tree
Hide file tree
Showing 2,043 changed files with 61,971 additions and 27,921 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

function process(tag, timestamp, record)
local v = "ops-agent";
(function(value)
if record["logging.googleapis.com/labels"] == nil
then
record["logging.googleapis.com/labels"] = {}
end
record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value
end)(v)
local v = "latest";
(function(value)
if record["logging.googleapis.com/labels"] == nil
then
record["logging.googleapis.com/labels"] = {}
end
record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value
end)(v)
local v = "v1";
(function(value)
if record["logging.googleapis.com/labels"] == nil
then
record["logging.googleapis.com/labels"] = {}
end
record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value
end)(v)
return 2, timestamp, record
end

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
Name modify
Match ops-agent-health
Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed
Set message LogPipelineErr
Set code LogPipelineErr
Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-fluent-bit
Expand All @@ -140,14 +140,74 @@
Name modify
Match ops-agent-health
Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse
Set message LogParseErr
Set code LogParseErr
Set message "[Runtime Check] Result: FAIL, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-fluent-bit
Name rewrite_tag
Rule message \[ warn\].*\serror\sparsing\slog\smessage\swith\sparser.* ops-agent-health true

[FILTER]
Name modify
Match ops-agent-health
Condition Key_value_matches message \[ warn\].*\serror\sparsing\slog\smessage\swith\sparser.*
Set code LogParseErr
Set message "[Runtime Check] Result: FAIL, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-fluent-bit
Name rewrite_tag
Rule message \[error\].*\sparsers\sreturned\san\serror.* ops-agent-health true

[FILTER]
Name modify
Match ops-agent-health
Condition Key_value_matches message \[error\].*\sparsers\sreturned\san\serror.*
Set code LogParseErr
Set message "[Runtime Check] Result: FAIL, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-fluent-bit
Name rewrite_tag
Rule message \[error\].*\sNo\ssuch\sfile\sor\sdirectory.* ops-agent-health true

[FILTER]
Name modify
Match ops-agent-health
Condition Key_value_matches message \[error\].*\sNo\ssuch\sfile\sor\sdirectory.*
Set code LogPathNotFoundErr
Set message "[Runtime Check] Result: FAIL, Error code: LogPathNotFoundErr, Failure: Ops Agent log path not found or insuficient permissions, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-fluent-bit
Name rewrite_tag
Rule message \[error\].*read\serror,\scheck\spermissions:.* ops-agent-health true

[FILTER]
Name modify
Match ops-agent-health
Condition Key_value_matches message \[error\].*read\serror,\scheck\spermissions:.*
Set code LogPathNotFoundErr
Set message "[Runtime Check] Result: FAIL, Error code: LogPathNotFoundErr, Failure: Ops Agent log path not found or insuficient permissions, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-fluent-bit
Name rewrite_tag
Rule message \[error\] \[in_winlog\] cannot read '.*' (6) ops-agent-health true

[FILTER]
Name modify
Match ops-agent-health
Condition Key_value_matches message \[error\] \[in_winlog\] cannot read '.*' (6)
Set code LogParseErr
Set message "[Runtime Check] Result: FAIL, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-health
Name lua
call process
script 68d6a3a0e8edf37868e1bf94adc737f4.lua
script 0f15dbe303dc7122d43443c9a4c31632.lua

[FILTER]
Match ops-agent-*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

function process(tag, timestamp, record)
local v = "ops-agent";
(function(value)
if record["logging.googleapis.com/labels"] == nil
then
record["logging.googleapis.com/labels"] = {}
end
record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value
end)(v)
local v = "latest";
(function(value)
if record["logging.googleapis.com/labels"] == nil
then
record["logging.googleapis.com/labels"] = {}
end
record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value
end)(v)
local v = "v1";
(function(value)
if record["logging.googleapis.com/labels"] == nil
then
record["logging.googleapis.com/labels"] = {}
end
record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value
end)(v)
return 2, timestamp, record
end

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
Name modify
Match ops-agent-health
Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed
Set message LogPipelineErr
Set code LogPipelineErr
Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-fluent-bit
Expand All @@ -140,14 +140,74 @@
Name modify
Match ops-agent-health
Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse
Set message LogParseErr
Set code LogParseErr
Set message "[Runtime Check] Result: FAIL, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-fluent-bit
Name rewrite_tag
Rule message \[ warn\].*\serror\sparsing\slog\smessage\swith\sparser.* ops-agent-health true

[FILTER]
Name modify
Match ops-agent-health
Condition Key_value_matches message \[ warn\].*\serror\sparsing\slog\smessage\swith\sparser.*
Set code LogParseErr
Set message "[Runtime Check] Result: FAIL, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-fluent-bit
Name rewrite_tag
Rule message \[error\].*\sparsers\sreturned\san\serror.* ops-agent-health true

[FILTER]
Name modify
Match ops-agent-health
Condition Key_value_matches message \[error\].*\sparsers\sreturned\san\serror.*
Set code LogParseErr
Set message "[Runtime Check] Result: FAIL, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-fluent-bit
Name rewrite_tag
Rule message \[error\].*\sNo\ssuch\sfile\sor\sdirectory.* ops-agent-health true

[FILTER]
Name modify
Match ops-agent-health
Condition Key_value_matches message \[error\].*\sNo\ssuch\sfile\sor\sdirectory.*
Set code LogPathNotFoundErr
Set message "[Runtime Check] Result: FAIL, Error code: LogPathNotFoundErr, Failure: Ops Agent log path not found or insuficient permissions, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-fluent-bit
Name rewrite_tag
Rule message \[error\].*read\serror,\scheck\spermissions:.* ops-agent-health true

[FILTER]
Name modify
Match ops-agent-health
Condition Key_value_matches message \[error\].*read\serror,\scheck\spermissions:.*
Set code LogPathNotFoundErr
Set message "[Runtime Check] Result: FAIL, Error code: LogPathNotFoundErr, Failure: Ops Agent log path not found or insuficient permissions, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-fluent-bit
Name rewrite_tag
Rule message \[error\] \[in_winlog\] cannot read '.*' (6) ops-agent-health true

[FILTER]
Name modify
Match ops-agent-health
Condition Key_value_matches message \[error\] \[in_winlog\] cannot read '.*' (6)
Set code LogParseErr
Set message "[Runtime Check] Result: FAIL, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info"

[FILTER]
Match ops-agent-health
Name lua
call process
script 68d6a3a0e8edf37868e1bf94adc737f4.lua
script 0f15dbe303dc7122d43443c9a4c31632.lua

[FILTER]
Match ops-agent-*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

function process(tag, timestamp, record)
local v = "ops-agent";
(function(value)
if record["logging.googleapis.com/labels"] == nil
then
record["logging.googleapis.com/labels"] = {}
end
record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value
end)(v)
local v = "latest";
(function(value)
if record["logging.googleapis.com/labels"] == nil
then
record["logging.googleapis.com/labels"] = {}
end
record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value
end)(v)
local v = "v1";
(function(value)
if record["logging.googleapis.com/labels"] == nil
then
record["logging.googleapis.com/labels"] = {}
end
record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value
end)(v)
return 2, timestamp, record
end

This file was deleted.

Loading

0 comments on commit 38458ca

Please sign in to comment.