-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ssl support, username and password for connecting to Kibana (#4597)
- Loading branch information
1 parent
52b5b59
commit a0f55eb
Showing
10 changed files
with
306 additions
and
13 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
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
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 |
---|---|---|
@@ -1,15 +1,29 @@ | ||
package kibana | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/elastic/beats/libbeat/outputs" | ||
) | ||
|
||
type kibanaConfig struct { | ||
Protocol string `config:"protocol"` | ||
Host string `config:"host"` | ||
Path string `config:"path"` | ||
Protocol string `config:"protocol"` | ||
Host string `config:"host"` | ||
Path string `config:"path"` | ||
Username string `config:"username"` | ||
Password string `config:"password"` | ||
TLS *outputs.TLSConfig `config:"ssl"` | ||
Timeout time.Duration `config:"timeout"` | ||
} | ||
|
||
var ( | ||
defaultKibanaConfig = kibanaConfig{ | ||
Protocol: "http", | ||
Host: "", | ||
Path: "", | ||
Username: "", | ||
Password: "", | ||
Timeout: 90 * time.Second, | ||
TLS: nil, | ||
} | ||
) |
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.