Hi ,
I am creating a database using eve.json.
I want to rename few fields in eve.json , Can I do that .
If Yes , what’s the process .
Secondly not all fields are required at time but I want to include all the fields that eve.json can provide me so that in future if I enable something it doesn’t effect my database.
Where I can get a list of all fields possible in eve.json.
You could start by proposing the field name changes in the forum (with an appropriate title) as a first step to see what folks are thinking. It’s possible that more folks share your thoughts on field renames.
We don’t have a definitive list of field names except in the code. Look at the output-json*.c modules as well as source code modules in rust/src/xxx/*.rs.
Many (but not all) fields are established with a function like jb_set_<type> or JB_SET in the src directory (C code). There are many places in rust/src where fields are created (but the function used is different).
The JSON builder code is 100% rust – see rust/src/jsonbuilder.rs
There are several option on how to modify the json output of Suricata, one common approach is to do this in the logshipper, for example filebeat can rename fields.