chg: [misp] correct timings
parent
ab4f9b967c
commit
29f2ef718b
|
@ -537,10 +537,8 @@ func csvStats(s *SSHDCompiler, v string) error {
|
|||
|
||||
func (s *SSHDCompiler) MISPexport() error {
|
||||
|
||||
//today := time.Now()
|
||||
//dstr := fmt.Sprintf("%v%v%v", today.Year(), fmt.Sprintf("%02d", int(today.Month())), fmt.Sprintf("%02d", int(today.Day())))
|
||||
|
||||
dstr := "20200505"
|
||||
today := time.Now()
|
||||
dstr := fmt.Sprintf("%v%v%v", today.Year(), fmt.Sprintf("%02d", int(today.Month())), fmt.Sprintf("%02d", int(today.Day())))
|
||||
|
||||
r0 := *s.r0
|
||||
r1 := *s.r1
|
||||
|
|
4
main.go
4
main.go
|
@ -51,7 +51,7 @@ var (
|
|||
redisInput *redis.Pool
|
||||
// Compilers
|
||||
compilers = [1]string{"sshd"}
|
||||
compilationTrigger = 20
|
||||
compilationTrigger = 2000
|
||||
torun = []logcompiler.Compiler{}
|
||||
// Routine handling
|
||||
pullgr sync.WaitGroup
|
||||
|
@ -231,7 +231,7 @@ func main() {
|
|||
// they can immediately die when exiting.
|
||||
for _, v := range torun {
|
||||
go func() {
|
||||
ticker := time.NewTicker(20 * time.Second)
|
||||
ticker := time.NewTicker(24 * time.Hour)
|
||||
for _ = range ticker.C {
|
||||
v.MISPexport()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue