Skip to content

Commit

Permalink
Showing IPAddress in list of nodes for CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
javuto committed Aug 26, 2019
1 parent 29a80c8 commit ec8fc02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions cmd/cli/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ func listNodes(c *cli.Context) error {
"Platform",
"Environment",
"Last Status",
"Last Result",
"IPAddress",
"Version",
})
if len(nodes) > 0 {
data := [][]string{}
Expand All @@ -40,7 +41,8 @@ func listNodes(c *cli.Context) error {
n.Platform,
n.Environment,
pastTimeAgo(n.LastStatus),
pastTimeAgo(n.LastResult),
n.IPAddress,
n.OsqueryVersion,
}
data = append(data, _n)
}
Expand Down
5 changes: 3 additions & 2 deletions plugins/logging_dispatcher/splunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ const (

// SlunkConfiguration to hold all splunk configuration values
type SlunkConfiguration struct {
URL string `json:"url"`
Token string `json:"token"`
URL string `json:"url"`
Token string `json:"token"`
Search string `json:"search"`
}

// Function to load the Splunk configuration from JSON file
Expand Down

0 comments on commit ec8fc02

Please sign in to comment.