Skip to content

Commit

Permalink
fix: remove extra directive from dpluger output (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmta authored and mergify[bot] committed Jul 14, 2019
1 parent 77f0833 commit aedfbaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/pkg/dpluger/dirmaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package dpluger

import (
"encoding/json"
"fmt"
"os"

"github.com/defenxor/dsiem/internal/pkg/dsiem/rule"
Expand Down Expand Up @@ -54,16 +55,18 @@ func CreateDirective(tsvFile, outFile, kingdom, category string, priority, relia
if err != nil {
return err
}
t.records = append(t.records, rec)
if eof {
break
}
t.records = append(t.records, rec)
}

dirs := siem.Directives{}

for _, v := range t.records {

fmt.Println("DEBUG:", v.Plugin, v.Title, v.ID, v.SID)

r1 := rule.DirectiveRule{}
r1.Name = v.Title
r1.Type = "PluginRule"
Expand Down

0 comments on commit aedfbaf

Please sign in to comment.