Project

General

Profile

Actions

Documentation #2699

open

document all eve record types and fields

Added by Victor Julien almost 5 years ago. Updated 8 months ago.

Status:
Assigned
Priority:
Normal
Target version:
Affected Versions:
Effort:
medium
Difficulty:
Label:

Description

For each document type, document fields and their types. Add examples.

It's probably best to add specific tickets for each of the record types.


Related issues 3 (3 open0 closed)

Related to Suricata - Task #2685: SuriCon 2018 brainstormAssignedVictor JulienActions
Related to Suricata - Documentation #2620: Documentation: tagged_packets / event_type packetNewJuliana Fajardini ReichowActions
Related to Suricata - Documentation #5359: userguide: improve documentation on (main) EVE fieldsNewOISF DevActions
Actions #1

Updated by Victor Julien almost 5 years ago

  • Assignee set to Robert Haist
  • Target version set to TBD
Actions #2

Updated by Victor Julien almost 5 years ago

  • Related to Task #2685: SuriCon 2018 brainstorm added
Actions #3

Updated by Victor Julien almost 5 years ago

Actions #4

Updated by Robert Haist almost 5 years ago

  • Effort set to medium

Working on it over at Github: https://github.com/rhaist/suricata-json-schema

Will probably take some time until we have a fully reproducible build but you can expect a preview soon.

Actions #5

Updated by Victor Julien almost 5 years ago

Maybe I'm misunderstanding the purpose of the schema, but the goal of this ticket is to get the userguide updated so that all missing EVE fields are documented.

The JSON schema ticket is #1369

Actions #6

Updated by Jason Ish over 4 years ago

Victor Julien wrote:

Maybe I'm misunderstanding the purpose of the schema, but the goal of this ticket is to get the userguide updated so that all missing EVE fields are documented.

The JSON schema ticket is #1369

I think the 2 are tightly related.

I had started to look at this again, more about how it should look to the end user. I played with using tables in Sphinx, but I don't find that scales well, especially if you want to reformat. When I jumped back to my JSON schema stuff, it is kind of ugly and I'm not sure if it can be used to generate suitable doc for the userguide. So my last attempt is just some custom YAML that I thought I might generate into Sphinx tables. Still not sure if that is a good idea though, given that JSON schema exists.

Ideally there should be one source of truth. If we still feel that JSON schema is suitable for QA testing, maybe that should be it. We could probably do some intermediate processing of it, and perhaps adding extra fields to provide context in end-user doc. By context I mean stuff like: "vlan - only present when the alerting packet has a vlan header".

Actions #7

Updated by Andreas Herz almost 4 years ago

  • Assignee changed from Robert Haist to Sascha Steinbiss
Actions #8

Updated by Andreas Herz almost 4 years ago

  • Tracker changed from Feature to Documentation
Actions #9

Updated by Philippe Antoine 11 months ago

@Sascha Steinbiss is this done through the json schema ?

Actions #10

Updated by Sascha Steinbiss 11 months ago

Good question. The generic documentation (as in: RTD pages) is not there yet, but from my point of view the JSON schema is OK. (Is etc/schema.json based on our 2019 stuff BTW or separately generated?)

Actions #11

Updated by Philippe Antoine 9 months ago

Good question. The generic documentation (as in: RTD pages) is not there yet, but from my point of view the JSON schema is OK. (Is etc/schema.json based on our 2019 stuff BTW or separately generated?)

I do not know your 2019 stuff.
etc/schema.json was generated with combining the outputs of suricata-verify tests (and then manual additions over time)

Actions #12

Updated by Philippe Antoine 9 months ago

Actions #13

Updated by Jason Ish 8 months ago

I've been working on a script to generate output from the schema.. Rough example here: https://gist.github.com/jasonish/fc04da8a5586954f78e1857fe3ae0203.

I'm thinking the next step would be a rather simple, but large `.rst` rendering as an appending in the docs with predictable anchors so one can link to the relevant section by protocol name, etc.

Actions

Also available in: Atom PDF