-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [CHG] config file and cleaned * [CHG] refactoring global config * [ADD] s3 lister * [WIP] initial s3 download * [FIX] config on inputs * [WIP] since and to * [ADD] since and to * [FIX] stop process * [ADD] debug message on sqs deletion * [DEL] TODOs because they are done * [ADD] doc * [FIX] incorrect package * Json parser (#8) * [ADD] allow to convert from any type to a new one * [ADD] benchmark * [CHG] use original type instead of converting to string * [ADD] json log parser * [ADD] log parsers on read * [ADD] waf log parser * [FIX] PR comments
- Loading branch information
1 parent
41cebb8
commit 5111d1e
Showing
47 changed files
with
1,887 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/.idea | ||
/build | ||
/logs | ||
|
||
.DS_Store | ||
/s3logsbeat | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// +build !integration | ||
|
||
package aws | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestS3ObjectInvalidURI(t *testing.T) { | ||
_, err := NewS3ObjectFromURI(`s3://no`) | ||
assert.Error(t, err) | ||
} | ||
|
||
func TestS3ObjectURIWithoutPath(t *testing.T) { | ||
s3object, err := NewS3ObjectFromURI(`s3://valid.com/`) | ||
assert.NoError(t, err) | ||
assert.Equal(t, "valid.com", s3object.Bucket) | ||
assert.Equal(t, "", s3object.Key) | ||
} | ||
|
||
func TestS3ObjectURIComplete(t *testing.T) { | ||
s3object, err := NewS3ObjectFromURI(`s3://valid.com/a/b/c`) | ||
assert.NoError(t, err) | ||
assert.Equal(t, "valid.com", s3object.Bucket) | ||
assert.Equal(t, "a/b/c", s3object.Key) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package beater | ||
|
||
import "flag" | ||
|
||
var ( | ||
once = flag.Bool("once", false, "Run s3logsbeat only once until all inputs will be read") | ||
keepSQSMessages = flag.Bool("keepsqsmessages", false, "Do not delete SQS messages when processed (set for testing)") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.