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