Skip to content

KodeKreatif/dovecot-log-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dovecot-log-scraper

Requirements

  • node v0.11
  • npm

How to

  • npm install
  • Edit conf.json, change hostname value to the dovecot's hostname.
  • node index.js /path/to/file.log
  • The optional env variables are : HOST, DB, USER and PASS. Example : HOST=localhost DB=master node index.js /path/to/file.log

Note

  • The log file should have date format like 2015-12-28T17:13:41.290881+07:00. Example :
2015-12-28T17:13:51.289892+07:00 mailgw [dovecot]	 info	:  imap-login: Login: user=, method=PLAIN, rip=1.1.1.1, lip=1.1.1.2, mpid=5372, session=

Test

npm run test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published