On Fri, 23 Aug 2019, Brian Candler wrote:
You can get the filename and line number with -oaddRuleLocation on the CLI
(or LN_CTXOPT_ADD_RULE_LOCATION in the API); or you can get a reconstructed
version of the rule itself using -oaddRule / LN_CTXOPT_ADD_RULE.
What I was trying to say was, the line numbers are not ideal to record in
your database or to count, because if you insert or delete rules, they
change. Hence I was considering storing a truncated hash of the rule.
so it sounds like what you need is for a hash function to be introduced, so that
you can take the reconstructed rule, hash it, truncate the hash and do whatever
you want with it.
sounds like a good idea, and not that hard to implement (even implementing to be
able to support multiple hash options so that the crypto geeks can argue over
which to use :-) )
David Lang
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.