]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
schema: add rule keyword mapping for flow
authorShivani Bhardwaj <shivani@oisf.net>
Fri, 9 May 2025 12:18:47 +0000 (17:48 +0530)
committerVictor Julien <victor@inliniac.net>
Sat, 10 May 2025 01:09:54 +0000 (03:09 +0200)
etc/schema.json

index 57624ec066a255ba2c1829d88a83c9060c27d557..208ebc703009a8b3cb12cba8f95c507b26cbfdde 100644 (file)
                     "type": "string"
                 },
                 "age": {
-                    "type": "integer"
+                    "type": "integer",
+                    "suricata": {
+                        "keywords" : [
+                            "flow.age"
+                        ]
+                    }
                 },
                 "alerted": {
                     "type": "boolean"
                     "additionalProperties": false
                 },
                 "bytes_toclient": {
-                    "type": "integer"
+                    "type": "integer",
+                    "suricata": {
+                        "keywords": [
+                            "flow.bytes",
+                            "flow.bytes_toclient"
+                        ]
+                    }
                 },
                 "bytes_toserver": {
-                    "type": "integer"
+                    "type": "integer",
+                    "suricata": {
+                        "keywords": [
+                            "flow.bytes",
+                            "flow.bytes_toserver"
+                        ]
+                    }
                 },
                 "dest_ip": {
                     "type": "string"
                     }
                 },
                 "pkts_toclient": {
-                    "type": "integer"
+                    "type": "integer",
+                    "suricata": {
+                        "keywords": [
+                            "flow.pkts",
+                            "flow.pkts_toclient"
+                        ]
+                    }
                 },
                 "pkts_toserver": {
-                    "type": "integer"
+                    "type": "integer",
+                    "suricata": {
+                        "keywords": [
+                            "flow.pkts",
+                            "flow.pkts_toserver"
+                        ]
+                    }
                 },
                 "reason": {
                     "type": "string"
                     "type": "string"
                 },
                 "state": {
-                    "type": "string"
+                    "type": "string",
+                    "suricata": {
+                        "keywords": [
+                            "flow"
+                        ]
+                    }
                 },
                 "wrong_thread": {
                     "type": "boolean"
                     "minItems": 1,
                     "items": {
                         "type": "string"
+                    },
+                    "suricata": {
+                        "keywords": [
+                            "flowbits"
+                        ]
                     }
                 },
                 "flowvars": {
                 },
                 "flowints": {
                     "type": "object",
-                    "additionalProperties": true
+                    "additionalProperties": true,
+                    "suricata": {
+                        "keywords": [
+                            "flowint"
+                        ]
+                    }
                 }
             },
             "additionalProperties": false