This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cookbooks:devel:core [2021/09/10 10:00] henningw |
cookbooks:devel:core [2021/11/16 09:30] miconda [Log Engine CLI Parameter] |
||
---|---|---|---|
Line 7: | Line 7: | ||
This tutorial collects the functions and parameters exported by Kamailio core to configuration file. | This tutorial collects the functions and parameters exported by Kamailio core to configuration file. | ||
- | **Note:** The parameters on this page are **NOT** in alphabetical order. | + | **Note:** The parameters on this page are **NOT** in alphabetical order. |
===== Structure ===== | ===== Structure ===== | ||
Line 3949: | Line 3949: | ||
* **A** - do not add log prefix | * **A** - do not add log prefix | ||
* **c** - add Call-ID (when available) as a dedicated JSON attribute | * **c** - add Call-ID (when available) as a dedicated JSON attribute | ||
+ | * **j** - the log prefix and message fields are printed in JSON structure format, detecting if they are enclosed in between **{ }** or adding them as a **text** field | ||
* **M** - strip EOL (' | * **M** - strip EOL (' | ||
* **N** - do not add EOL at the end of JSON document | * **N** - do not add EOL at the end of JSON document | ||
+ | * **p** - the log prefix is printed as it is in the root json document, it has to start with comma (**,**) and be a valid set of json fields | ||
+ | * **U** - CEE (Common Event Expression) schema format - https:// | ||
Example of JSON logs when running Kamailio with " | Example of JSON logs when running Kamailio with " | ||
Line 3958: | Line 3961: | ||
{ " | { " | ||
+ | </ | ||
+ | Example config for printing log message with **j** flag: | ||
+ | |||
+ | < | ||
+ | xinfo(" | ||
+ | </ | ||
+ | |||
+ | Example config for printing log messages with **p** flag: | ||
+ | |||
+ | < | ||
+ | log_prefix=", | ||
</ | </ |