[docs] formats: provide an example of overriding only the error detection regexp for a format

- fixes https://github.com/tstack/lnav/issues/733
pull/1113/head
nodiscc 2 years ago
parent 1b19fdca95
commit 7268513a27
No known key found for this signature in database
GPG Key ID: 067FC4266A4B6909

@ -394,6 +394,21 @@ with the following contents:
}
}
This example overrides the default `syslog_log <https://github.com/tstack/lnav/blob/master/src/formats/syslog_log.json>`_
error detection regex to **not** match the :code:`errors=` string.
.. code-block:: json
{
"syslog_log": {
"level": {
"error": "(?:(?:(?<![a-zA-Z]))(?:(?i)error(?:s)?(?!=))(?:(?![a-zA-Z]))|failed|failure)"
}
}
}
.. _scripts:
Scripts

Loading…
Cancel
Save