RSPAMD_STATS(8)
π RSPAMD_STATS π
okay bestie, welcome to rspamd_stats, section 8 of the manual pages, and she is the girl for snooping on your Rspamd rules by reading log files. iykyk.
β¨ NAME β¨
rspamd_stats β analyze Rspamd rules by parsing log files π΅οΈβοΈ
π¦ SYNOPSIS π¦
rspamd_stats [options] [βsymbol=SYM1 [βsymbol=SYM2...]] [βlog file]
πΈ DESCRIPTION πΈ
so basically rspamd_stats will read the log file you hand it (or standard input if you're feeling mysterious) and then it serves you statistics for the symbols you asked about. it's giving data. it's giving receipts. π
Symbol: BAYES_SPAM (weight 3.763) (381985 hits, 26.827%)
Ham hits: 184557 (48.315%), total ham: 1095487 (ham with BAYES_SPAM: 16.847%)
Spam hits: 15134 (3.962%), total spam: 16688 (spam with BAYES_SPAM: 90.688%)
Junk hits: 182294 (47.723%), total junk: 311699 (junk with BAYES_SPAM: 58.484%)
Spam changes (ham/junk -> spam): 7026 (1.839%), total percentage (changes / spam hits): 42.102%
Junk changes (ham -> junk): 95192 (24.920%), total percentage (changes / junk hits): 30.540%
and here's what all those little attributes actually mean, bestie, because i know you were about to ask π
- Weight β the average score for a symbol π―
- Total hits β the total number of hits, plus the percentage of symbol hits divided by the total number of messages
- HAM hits β gives you the following info about HAM messages with the specified symbol (left to right, no skipping):
- total symbol hits: how many messages have this symbol AND are HAM
- ham percentage: number of symbol hits divided by the overall HAM messages count
- total ham hits: the overall number of HAM messages
- ham with symbol percentage: percentage of the number of hits with the specified symbol in HAM messages, divided by the total number of HAM messages
- SPAM hits β gives you info about SPAM messages β same as the previous one but for the SPAM class ποΈ
- Junk hits β gives you info about Junk messages β same as the previous one but for the JUNK class
- Spam changes β shows you data about how many messages switched their class because of the specific symbol weight
- Junk changes β shows you data about how many messages switched their class because of the specific symbol weight
β¨ OPTIONS β¨
--logβ specifies the log file or directory to read data from. if you give it a directory,rspamd_statsanalyses the files in that directory including known compressed file types ποΈ. the number of log files can be limited with the--num-logsand--exclude-logsoptions. this assumes that files in the log directory have anewsyslog(8)- orlogrotate(8)-like name format with numeric indexes. files without indexes (generally it's merely one file) are considered the most recent, and files with lower indexes are considered newer.--reject-scoreβ specifies the reject (spam) threshold π«--junk-scoreβ specifies the junk (add header or rewrite subject) threshold--alpha-scoreβ specifies the minimum score for a symbol to be considered by this script--symbolβ add a symbol or pattern (pcre format) to analyze π--num-logsβ if set, limits the number of analyzed logfiles in the directory to the specified value--exclude-logsβ number of latest logs to exclude (0by default)--correlationsβ additionally print the correlation rate for each symbol displayed. this routine calculates merely paired correlations between symbols π--search-patternβ do not process input unless finding the specified regular expression. useful to skip logs to a certain position βοΈ--excludeβ exclude log lines if certain symbols are fired (e.g.GTUBE). you may specify this option multiple times to skip multiple symbols--startβ select log entries after this time. format:βYYYY-MM-DD HH:MM:SSβ(can be truncated to any desired accuracy). if used with--end, select entries betweenβstartand--end. the omitted date defaults to the current date if you supply the time β°--endβ select log entries before this time. format:βYYYY-MM-DD HH:MM:SSβ(can be truncated to any desired accuracy). if used with--start, select entries between--startand--end. the omitted date defaults to the current date if you supply the time--helpβ print a brief help message and exits--manβ prints the manual page and exits π
π AUTHORS π
Vsevolod Stakhov.
no cap, that's the whole thing. go read your logs, bestie π«Ά
mwah π β this was RSPAMD_STATS(8) from March 5, 2018, and that's the vibe check, periodt β¨ππ¦
π¦ where this page comes from
- debian trixie: rspamd 3.12.1-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms