Skip to content

Commit

Permalink
Line in status logs can be number or string
Browse files Browse the repository at this point in the history
  • Loading branch information
javuto committed Jan 24, 2024
1 parent cac16f1 commit 99a5587
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion logging/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (logDB *LoggerDB) Status(data []byte, environment, uuid string, debug bool)
entry := OsqueryStatusData{
UUID: strings.ToUpper(l.HostIdentifier),
Environment: environment,
Line: l.Line,
Line: strconv.Itoa(int(l.Line)),
Message: l.Message,
Version: l.Version,
Filename: l.Filename,
Expand Down
2 changes: 1 addition & 1 deletion types/osquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ type LogResultData struct {

// LogStatusData to be used processing status logs from nodes
type LogStatusData struct {
Line string `json:"line"`
Line StringInt `json:"line"`
Message string `json:"message"`
Version string `json:"version"`
Filename string `json:"filename"`
Expand Down

0 comments on commit 99a5587

Please sign in to comment.