Skip to content

Commit e6e9369

Browse files
seanthegeekclaude
andcommitted
Tag drop{} statements per content-hub convention
Google's content-hub parsers tag dropped logs (drop { tag => "TAG_..." }) so they surface correctly in the unparsed-log views, rather than bare drop{}. Use TAG_MALFORMED_ENCODING for the two JSON-extraction/parse failures (matches content-hub) and TAG_UNSUPPORTED for valid JSON that matches no parsedmarc report shape. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent aabcfb4 commit e6e9369

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

google_secops_parser/parsedmarc.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ filter {
177177
on_error => "no_json_payload"
178178
}
179179
if [no_json_payload] {
180-
drop {}
180+
drop { tag => "TAG_MALFORMED_ENCODING" }
181181
}
182182

183183
json {
184184
source => "payload"
185185
on_error => "not_json"
186186
}
187187
if [not_json] {
188-
drop {}
188+
drop { tag => "TAG_MALFORMED_ENCODING" }
189189
}
190190

191191
# ---------------------------------------------------------------------------
@@ -232,7 +232,7 @@ filter {
232232

233233
# Not a parsedmarc record we recognize: drop rather than emit an invalid event.
234234
if [report_type] == "" {
235-
drop {}
235+
drop { tag => "TAG_UNSUPPORTED" }
236236
}
237237

238238
# ===========================================================================

0 commit comments

Comments
 (0)