Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numerous improvements to Gogstash #126

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

MayurVirkar
Copy link

1: Added Redis output
2: Added password support to Redis
3: Added compiled binaries
4: Added compilation script to generate binaries
5: Updated documentation with new features
6: Added flags to improve elastic compatibility.

Normally I wouldn't create pull requests this way. But as I have already done the changes for my internal project, just sharing them here as well.
Feel free to cherry-pick.

@@ -26,6 +26,10 @@ type InputConfig struct {
Key string `json:"key"` // where to get data, default: "gogstash"
Connections int `json:"connections"` // maximum number of socket connections, default: 10
BatchCount int `json:"batch_count"` // The number of events to return from Redis using EVAL, default: 125
//Adding support to password protected redis server
Copy link
Contributor

@tengattack tengattack Apr 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have a space after //

@@ -27,6 +27,10 @@ type OutputConfig struct {
Timeout int `json:"timeout,omitempty"`
ReconnectInterval int `json:"reconnect_interval,omitempty"`
Connections int `json:"connections"` // maximum number of socket connections, default: 10
//Adding support to password protected redis server
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Contributor

@tengattack tengattack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not include the binary files?

Copy link
Owner

@tsaikd tsaikd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3: Added compiled binaries

https://github.com/tsaikd/gogstash/releases

4: Added compilation script to generate binaries

docker/Dockerfile should be able to help to build the project.

Normally I wouldn't create pull requests this way. But as I have already done the changes for my internal project, just sharing them here as well.
Feel free to cherry-pick.

If you don't like the normal PR flow, you can just close the PR. I will cherry-pick some commits and make a few changes.

@@ -22,6 +22,13 @@ input:

# (optional) BLPOP blocking timeout, default: "600s"
blocking_timeout: "600s"

# (optional) Password for DB, default: null
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type of password is string, so I think the default value is an empty string "".

@@ -23,6 +23,12 @@ gogstash output redis

// (optional), in seconds, default: 1
"reconnect_interval": 1

// (optional) Password for DB, default: null
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type of password is string, so I think the default value is an empty string "".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants