Skip to content

Commit

Permalink
Add missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinmit committed Mar 17, 2022
1 parent 46200fb commit c3fb21d
Show file tree
Hide file tree
Showing 451 changed files with 2,204 additions and 1,762 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "syslog";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
Match default_pipeline.syslog
Name lua
call process
script 0dde26427cc9c9523397e46bfc05a94e.lua
script e59640aecc0edba3f991865e880afb46.lua

[OUTPUT]
Match_Regex ^(default_pipeline\.syslog)$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "syslog";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
Match default_pipeline.syslog
Name lua
call process
script 0dde26427cc9c9523397e46bfc05a94e.lua
script e59640aecc0edba3f991865e880afb46.lua

[OUTPUT]
Match_Regex ^(default_pipeline\.syslog)$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "syslog";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
Match default_pipeline.syslog
Name lua
call process
script 0dde26427cc9c9523397e46bfc05a94e.lua
script e59640aecc0edba3f991865e880afb46.lua

[OUTPUT]
Match_Regex ^(default_pipeline\.syslog)$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "syslog";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
Match default_pipeline.syslog
Name lua
call process
script 0dde26427cc9c9523397e46bfc05a94e.lua
script e59640aecc0edba3f991865e880afb46.lua

[OUTPUT]
Match_Regex ^(default_pipeline\.syslog)$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "test_syslog_source_id_udp";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "log_source_id2";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "log_source_id1";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "test_syslog_source_id_tcp";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@
Match pipeline1.log_source_id1
Name lua
call process
script b857d2aecd55e74e46c277b70a867b7d.lua
script 90fdcdb7c94387b33129dc173c2f1e5b.lua

[FILTER]
Match pipeline2.log_source_id2
Name lua
call process
script 7b98d8f45f5a9652df17ffce2ec186e3.lua
script 12d26ce74fe9c1a66ff203902bc1316a.lua

[FILTER]
Key_Name message
Expand All @@ -103,7 +103,7 @@
Match pipeline3.test_syslog_source_id_tcp
Name lua
call process
script 4fb05517911455ff70be247cb819d02e.lua
script c9a952967242290866e6843c8712cca0.lua

[FILTER]
Key_Name message
Expand All @@ -115,7 +115,7 @@
Match pipeline4.test_syslog_source_id_udp
Name lua
call process
script 0f25926cdddabed99135e320de4229e0.lua
script 05feebe714cb787d96d6742647985ea6.lua

[OUTPUT]
Match_Regex ^(pipeline1\.log_source_id1|pipeline2\.log_source_id2|pipeline3\.test_syslog_source_id_tcp|pipeline4\.test_syslog_source_id_udp)$
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "sample_logs";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

function process(tag, timestamp, record)
local v = "files";
(function(value)
if record["logging.googleapis.com/labels"] == nil
then
record["logging.googleapis.com/labels"] = {}
end
record["logging.googleapis.com/labels"]["logging.googleapis.com/instrumentation_source"] = value
end)(v)
local v = "syslog";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
Match default_pipeline.syslog
Name lua
call process
script 0dde26427cc9c9523397e46bfc05a94e.lua
script e59640aecc0edba3f991865e880afb46.lua

[FILTER]
Match p1.sample_logs
Expand Down Expand Up @@ -460,7 +460,7 @@
Match p1.sample_logs
Name lua
call process
script cb10a32269fa79231cc0a5ca3d583cda.lua
script d1e490be3abdd5dd10b704e35cd8c5e8.lua

[OUTPUT]
Match_Regex ^(default_pipeline\.syslog|p1\.sample_logs)$
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "sample_logs";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

function process(tag, timestamp, record)
local v = "files";
(function(value)
if record["logging.googleapis.com/labels"] == nil
then
record["logging.googleapis.com/labels"] = {}
end
record["logging.googleapis.com/labels"]["logging.googleapis.com/instrumentation_source"] = value
end)(v)
local v = "syslog";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
Match default_pipeline.syslog
Name lua
call process
script 0dde26427cc9c9523397e46bfc05a94e.lua
script e59640aecc0edba3f991865e880afb46.lua

[FILTER]
Key_Name message
Expand All @@ -95,7 +95,7 @@
Match pipeline1.sample_logs
Name lua
call process
script cb10a32269fa79231cc0a5ca3d583cda.lua
script d1e490be3abdd5dd10b704e35cd8c5e8.lua

[FILTER]
Key_Name message
Expand All @@ -113,7 +113,7 @@
Match pipeline2.sample_logs
Name lua
call process
script cb10a32269fa79231cc0a5ca3d583cda.lua
script d1e490be3abdd5dd10b704e35cd8c5e8.lua

[OUTPUT]
Match_Regex ^(default_pipeline\.syslog|pipeline1\.sample_logs|pipeline2\.sample_logs)$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "test_syslog_source_id_udp";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "log_source_id2";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "log_source_id1";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "test_syslog_source_id_tcp";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
Match pipeline1.log_source_id1
Name lua
call process
script b857d2aecd55e74e46c277b70a867b7d.lua
script 90fdcdb7c94387b33129dc173c2f1e5b.lua

[FILTER]
Key_Name key_1
Expand All @@ -103,7 +103,7 @@
Match pipeline2.log_source_id2
Name lua
call process
script 7b98d8f45f5a9652df17ffce2ec186e3.lua
script 12d26ce74fe9c1a66ff203902bc1316a.lua

[FILTER]
Key_Name message
Expand All @@ -115,7 +115,7 @@
Match pipeline3.test_syslog_source_id_tcp
Name lua
call process
script 4fb05517911455ff70be247cb819d02e.lua
script c9a952967242290866e6843c8712cca0.lua

[FILTER]
Key_Name message
Expand All @@ -127,7 +127,7 @@
Match pipeline4.test_syslog_source_id_udp
Name lua
call process
script 0f25926cdddabed99135e320de4229e0.lua
script 05feebe714cb787d96d6742647985ea6.lua

[OUTPUT]
Match_Regex ^(pipeline1\.log_source_id1|pipeline2\.log_source_id2|pipeline3\.test_syslog_source_id_tcp|pipeline4\.test_syslog_source_id_udp)$
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

function process(tag, timestamp, record)
local v = "files";
(function(value)
if record["logging.googleapis.com/labels"] == nil
then
record["logging.googleapis.com/labels"] = {}
end
record["logging.googleapis.com/labels"]["logging.googleapis.com/instrumentation_source"] = value
end)(v)
local v = "syslog";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
Match default_pipeline.syslog
Name lua
call process
script 0dde26427cc9c9523397e46bfc05a94e.lua
script e59640aecc0edba3f991865e880afb46.lua

[OUTPUT]
Match_Regex ^(default_pipeline\.syslog)$
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "apache_access";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ local v = "apache_error";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

function process(tag, timestamp, record)
local v = "files";
(function(value)
if record["logging.googleapis.com/labels"] == nil
then
record["logging.googleapis.com/labels"] = {}
end
record["logging.googleapis.com/labels"]["logging.googleapis.com/instrumentation_source"] = value
end)(v)
local v = "syslog";
(function(value)
record["logging.googleapis.com/logName"] = value
end)(v)
return 2, timestamp, record
end
Loading

0 comments on commit c3fb21d

Please sign in to comment.