From 40728693d9cfbd99458f12d5183119ec699b8907 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 27 Feb 2020 16:28:10 +0000 Subject: can run scheduled queries across a storage volume --- internal/config/server.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/config') diff --git a/internal/config/server.go b/internal/config/server.go index aa1a02e..09eb2c4 100644 --- a/internal/config/server.go +++ b/internal/config/server.go @@ -20,9 +20,10 @@ type Scheduled struct { Files string Query string Outfile string - Discovery string `json:",omitempty"` - Servers string + Discovery string `json:",omitempty"` + Servers []string `json:",omitempty"` TimeRange [2]int + AllowFrom []string `json:",omitempty"` } // ServerConfig represents the server configuration. -- cgit v1.2.3 From cb2de4109632932bccf5d13e77f40157d4e84c18 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 27 Feb 2020 16:54:42 +0000 Subject: outfile is optional --- internal/config/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/config') diff --git a/internal/config/server.go b/internal/config/server.go index 09eb2c4..bc2f40a 100644 --- a/internal/config/server.go +++ b/internal/config/server.go @@ -19,7 +19,7 @@ type Scheduled struct { Enable bool Files string Query string - Outfile string + Outfile string `json:",omitempty"` Discovery string `json:",omitempty"` Servers []string `json:",omitempty"` TimeRange [2]int -- cgit v1.2.3 From 71d2786aeaa793d9cf51c389d2e91cf472d25f7a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 28 Feb 2020 13:14:29 +0000 Subject: more on scheduled commands --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/config') diff --git a/internal/config/config.go b/internal/config/config.go index d20a480..166e143 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -10,7 +10,7 @@ import ( const ControlUser string = "DTAIL-CONTROL-USER" // ScheduledUser is used for scheduled queries. -const ScheduledUser string = "DTAIL-SCHEDULED-USER" +const ScheduleUser string = "DTAIL-SCHEDULED-USER" // Client holds a DTail client configuration. var Client *ClientConfig -- cgit v1.2.3