rdlaitila / maillog2db Goto Github PK
View Code? Open in Web Editor NEWCapture Postfix Mail logs to Database
License: Apache License 2.0
Capture Postfix Mail logs to Database
License: Apache License 2.0
Hello, when I type go build
, it says to me :
./maillog2db.go:158: cannot assign *gorm.DB to DBCONN (type gorm.DB) in multiple assignment
My system :
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
root@smtp-out:/opt/maillog2db# go version
go version go1.6.2 linux/amd64
Can you help me ? Thank you !
Hello!
I found interesting bug:
file for test:
Apr 1 16:55:07 bs2 postfix/qmgr[17609]: D94E03B62: removed
Apr 04 16:55:07 bs2 postfix/qmgr[17609]: D94E03B62: removed
Apr 30 00:00:05 bs1 postfix/postfix-script[5689]: refreshing the Postfix mail system
run maillog2db
Attention: maillog2db don't parse "Apr 1 16:55:07 bs2 postfix/qmgr[17609]: D94E03B62: removed" !
BUT if I add "0" and string will be
Apr 01 16:55:07 bs2 postfix/qmgr[17609]: D94E03B62: removed
all will be good:
BUT postfix by default write date in format Apr 1 ....
How I can fix it?
PS Debian 10
Hi,
we have an issue when compiling: docker build -t maillog2db .
Sending build context to Docker daemon 5.118MB
Step 1/7 : FROM golang:1.14.4 AS builder
1.14.4: Pulling from library/golang
e9afc4f90ab0: Pull complete
989e6b19a265: Pull complete
af14b6c2f878: Pull complete
5573c4b30949: Pull complete
d4020e2aa747: Pull complete
85383fed8a84: Pull complete
0bdb3996894f: Pull complete
Digest: sha256:d31a307a7e42116adb00d8d70971dbf228460904dd9b6217e911d088aa4b650c
Status: Downloaded newer image for golang:1.14.4
---> 00d970a31ef2
Step 2/7 : WORKDIR /app
---> Running in e97ed3d74803
Removing intermediate container e97ed3d74803
---> 5d7ce43baf0e
Step 3/7 : COPY go.mod go.sum maillog2db.go ./
---> 83f6f84c1d84
Step 4/7 : RUN go mod download && CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o app
---> Running in fe25cf86d7eb
go: github.com/ActiveState/[email protected]: Get "https://proxy.golang.org/github.com/%21active%21state/tail/@v/v1.0.0.mod": dial tcp: i/o timeout
The command '/bin/sh -c go mod download && CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o app' returned a non-zero code: 1
When logrotate archives mail.log to mail.log.1. The script fails to phrase the new file. Is there a fix for this issue?
Hi,
I executed script with suitable parameters . all of postfix logs placed into "pfmaillog2db_logs" and other tables were empty .
would you please tell me why ?
thanks.
farfar56
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.