From 8d55a0ba0f7c00efaa77a1cf85bd4e34e9937622 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 3 Apr 2021 10:07:11 +0100 Subject: Add a DTail Gopher --- README.md | 2 +- doc/dtail-gopher.png | Bin 0 -> 227162 bytes doc/title.png | Bin 0 -> 84933 bytes 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 doc/dtail-gopher.png create mode 100644 doc/title.png diff --git a/README.md b/README.md index d65d124..d8ced1a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ DTail ===== -![DTail](doc/logo.png "DTail") +![DTail](doc/title.png "DTail") DTail (a distributed tail program) is a DevOps tool for engineers programmed in Google Go for following (tailing), catting and grepping (including gzip and zstd decompression support) log files on many machines concurrently. An advanced feature of DTail is to execute distributed mapreduce aggregations across many machines. diff --git a/doc/dtail-gopher.png b/doc/dtail-gopher.png new file mode 100644 index 0000000..5d9727e Binary files /dev/null and b/doc/dtail-gopher.png differ diff --git a/doc/title.png b/doc/title.png new file mode 100644 index 0000000..4e343c4 Binary files /dev/null and b/doc/title.png differ -- cgit v1.2.3 From 35ba671688bde7500bc66c325c48b4fe26380738 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 3 Apr 2021 10:07:38 +0100 Subject: remove serverlist on spindown --- doc/title.xcf | Bin 0 -> 124226 bytes docker/spindown.sh | 2 ++ 2 files changed, 2 insertions(+) create mode 100644 doc/title.xcf diff --git a/doc/title.xcf b/doc/title.xcf new file mode 100644 index 0000000..257d36c Binary files /dev/null and b/doc/title.xcf differ diff --git a/docker/spindown.sh b/docker/spindown.sh index b3d3a8c..1b171f3 100755 --- a/docker/spindown.sh +++ b/docker/spindown.sh @@ -3,6 +3,8 @@ declare -i NUM_INSTANCES=$1 declare -i BASE_PORT=2222 +rm serverlist.txt &>/dev/null + for (( i=0; i < $NUM_INSTANCES; i++ )); do port=$[ BASE_PORT + i + 1 ] docker stop dserver-serv$i -- cgit v1.2.3 From 66866e4adbf44cde4f570c44f0f577aa92f8cf20 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 3 Apr 2021 10:12:49 +0100 Subject: Add various badges to the README. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d8ced1a..d92242e 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ DTail ![DTail](doc/title.png "DTail") +[![License](https://img.shields.io/github/license/mimecast/dtail)](https://www.apache.org/license/LICENSE-2.0.html) [![Go Report Card](https://goreportcard.com/badge/github.com/mimecast/dtail)](https://goreportcard.com/report/github.com/mimecast/dtail) [![Hits-of-Code](https://hitsofcode.com/github/mimecast/dtail)](https://www.vbrandl.net/post/2019-05-03_hits-of-code/) ![GitHub issues](https://img.shields.io/github/issues/mimecast/dtail) ![GitHub forks](https://img.shields.io/github/forks/mimecast/dtail) ![GitHub stars](https://img.shields.io/github/stars/mimecast/dtail) + DTail (a distributed tail program) is a DevOps tool for engineers programmed in Google Go for following (tailing), catting and grepping (including gzip and zstd decompression support) log files on many machines concurrently. An advanced feature of DTail is to execute distributed mapreduce aggregations across many machines. For secure authorization and transport encryption the SSH protocol is used. Furthermore, DTail respects the UNIX file system permission model (traditional on all Linux/UNIX variants and also ACLs on Linux based operating systems). @@ -31,5 +33,5 @@ Credits ======= * DTail was created by **Paul Buetow** ** - -* Thank you to **Vlad-Marian Marian** for creating the DTail logo. +* Thank you to **Vlad-Marian Marian** for creating the DTail (dog) logo. +* The Gopher was generated at https://gopherize.me -- cgit v1.2.3 From c1eb0f499c6cc1ec03e18bd2b50a4d52bbf4d138 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 3 Apr 2021 14:20:56 +0100 Subject: Fix misspellings --- README.md | 2 +- internal/discovery/discovery.go | 2 +- internal/server/handlers/serverhandler.go | 2 +- internal/server/server.go | 2 +- internal/user/server/user.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d92242e..dfe351c 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ DTail ![DTail](doc/title.png "DTail") -[![License](https://img.shields.io/github/license/mimecast/dtail)](https://www.apache.org/license/LICENSE-2.0.html) [![Go Report Card](https://goreportcard.com/badge/github.com/mimecast/dtail)](https://goreportcard.com/report/github.com/mimecast/dtail) [![Hits-of-Code](https://hitsofcode.com/github/mimecast/dtail)](https://www.vbrandl.net/post/2019-05-03_hits-of-code/) ![GitHub issues](https://img.shields.io/github/issues/mimecast/dtail) ![GitHub forks](https://img.shields.io/github/forks/mimecast/dtail) ![GitHub stars](https://img.shields.io/github/stars/mimecast/dtail) +[![License](https://img.shields.io/github/license/mimecast/dtail)](https://www.apache.org/licenses/LICENSE-2.0.html) [![Go Report Card](https://goreportcard.com/badge/github.com/mimecast/dtail)](https://goreportcard.com/report/github.com/mimecast/dtail) [![Hits-of-Code](https://hitsofcode.com/github/mimecast/dtail)](https://www.vbrandl.net/post/2019-05-03_hits-of-code/) ![GitHub issues](https://img.shields.io/github/issues/mimecast/dtail) ![GitHub forks](https://img.shields.io/github/forks/mimecast/dtail) ![GitHub stars](https://img.shields.io/github/stars/mimecast/dtail) DTail (a distributed tail program) is a DevOps tool for engineers programmed in Google Go for following (tailing), catting and grepping (including gzip and zstd decompression support) log files on many machines concurrently. An advanced feature of DTail is to execute distributed mapreduce aggregations across many machines. diff --git a/internal/discovery/discovery.go b/internal/discovery/discovery.go index 3608ce7..a25b136 100644 --- a/internal/discovery/discovery.go +++ b/internal/discovery/discovery.go @@ -24,7 +24,7 @@ const ( type Discovery struct { // To plug in a custom server discovery module. module string - // To specifiy optional server discovery module options. + // To specify optional server discovery module options. options string // To either filter a server list or to secify an exact list. server string diff --git a/internal/server/handlers/serverhandler.go b/internal/server/handlers/serverhandler.go index 7da6012..39d5d5f 100644 --- a/internal/server/handlers/serverhandler.go +++ b/internal/server/handlers/serverhandler.go @@ -89,7 +89,7 @@ func (h *ServerHandler) Read(p []byte) (n int, err error) { select { case message := <-h.serverMessages: if len(message) == 0 { - logger.Warn(h.user, "Empty message recieved") + logger.Warn(h.user, "Empty message received") return } if message[0] == '.' { diff --git a/internal/server/server.go b/internal/server/server.go index 73822d5..3640208 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -204,7 +204,7 @@ func (s *Server) handleRequests(ctx context.Context, sshConn gossh.Conn, in <-ch default: req.Reply(false, nil) - return fmt.Errorf("Closing SSH connection as unknown request recieved|%s|%v", + return fmt.Errorf("Closing SSH connection as unknown request received|%s|%v", req.Type, payload.Value) } } diff --git a/internal/user/server/user.go b/internal/user/server/user.go index 637945c..fc5d6c1 100644 --- a/internal/user/server/user.go +++ b/internal/user/server/user.go @@ -37,7 +37,7 @@ func (u *User) String() string { return fmt.Sprintf("%s@%s", u.Name, u.remoteAddress) } -// HasFilePermission is used to determine whether user is alowed to read a file. +// HasFilePermission is used to determine whether user is allowwed to read a file. func (u *User) HasFilePermission(filePath, permissionType string) (hasPermission bool) { logger.Debug(u, filePath, permissionType, "Checking config permissions") if config.ServerRelaxedAuthEnable { -- cgit v1.2.3 From 4dcb77447500271377bb9bb5186d614dfb5bd2d0 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 3 Apr 2021 14:29:39 +0100 Subject: Variable not used --- internal/mapr/logformat/default_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/mapr/logformat/default_test.go b/internal/mapr/logformat/default_test.go index d7a4da4..10ec8b7 100644 --- a/internal/mapr/logformat/default_test.go +++ b/internal/mapr/logformat/default_test.go @@ -28,7 +28,7 @@ func TestDefaultLogFormat(t *testing.T) { t.Errorf("Expected 'bay' stored in field 'baz', but got '%s'\n", bay) } - fields, err = parser.MakeFields("foo=bar|bazbay") + _, err = parser.MakeFields("foo=bar|bazbay") if err == nil { t.Errorf("Expected error but didn't: %s", err.Error()) } -- cgit v1.2.3 From 6d228ca090b1035b2d3de535689cf5de3966b58e Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 3 Apr 2021 14:31:13 +0100 Subject: Typo --- internal/user/server/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/user/server/user.go b/internal/user/server/user.go index fc5d6c1..af6b0d0 100644 --- a/internal/user/server/user.go +++ b/internal/user/server/user.go @@ -37,7 +37,7 @@ func (u *User) String() string { return fmt.Sprintf("%s@%s", u.Name, u.remoteAddress) } -// HasFilePermission is used to determine whether user is allowwed to read a file. +// HasFilePermission is used to determine whether user is allowed to read a file. func (u *User) HasFilePermission(filePath, permissionType string) (hasPermission bool) { logger.Debug(u, filePath, permissionType, "Checking config permissions") if config.ServerRelaxedAuthEnable { -- cgit v1.2.3