Skip to content

Commit

Permalink
Merge branch 'develop' of gitlab.devuk.mimecast.lan:Storage/dtail
Browse files Browse the repository at this point in the history
  • Loading branch information
pbuetow committed Apr 6, 2021
2 parents 36224fd + 9588dc5 commit c5ad4b8
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 8 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
DTail
=====

![DTail](doc/logo.png "DTail")
![DTail](doc/title.png "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.

Expand Down Expand Up @@ -31,5 +33,5 @@ Credits
=======

* DTail was created by **Paul Buetow** *<pbuetow@mimecast.com>*

* 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
Binary file added doc/dtail-gopher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/title.xcf
Binary file not shown.
2 changes: 2 additions & 0 deletions docker/spindown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/discovery/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/mapr/logformat/default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down
2 changes: 1 addition & 1 deletion internal/server/handlers/serverhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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] == '.' {
Expand Down
2 changes: 1 addition & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/user/server/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 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 {
Expand Down

0 comments on commit c5ad4b8

Please sign in to comment.