Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] Variable severity and or tags imfile #4065

Open
spacecabbie opened this issue Dec 26, 2019 · 2 comments
Open

[question] Variable severity and or tags imfile #4065

spacecabbie opened this issue Dec 26, 2019 · 2 comments

Comments

@spacecabbie
Copy link

spacecabbie commented Dec 26, 2019

Question/feature request/guide/Or link to documentation.
I have the following log import file.

Configured in /etc/rsyslog.d/traccar.conf

      File="/var/log/traccar/tracker-server.log"
      Tag="traccar-server"
      Severity="warning"
      Facility="local7")

Now the Tag and Severity is fixed I like it to take its value from the file....

2019-12-26 10:05:58 DEBUG: validationTimeout...............
2019-12-26 10:05:58  INFO: 
2019-12-26 10:05:58 DEBUG:

There are the following levels

SEVERE (highest value)
WARNING
INFO
CONFIG
FINE
FINER

I read about rulesets but the seems to be about what to log where. I think it can be done with this but can't find a good example or guide.
I suspect it's not possible ? IF so is this anything that might be worthwhile implementing in feature release ?

@mabobr
Copy link

mabobr commented Feb 16, 2020

Hi
properties (https://www.rsyslog.com/doc/master/configuration/properties.html): priorities, facilities and severities, cannot be changed, once have been set for an event,
You can parse your event, set your custom variable to keep your custom levels and handle the event based on it.
ruleset has noting related, ruleset is routine/function to be called when needed.

@robertvazan
Copy link

#3849 might solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants