forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.go
28 lines (25 loc) · 897 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package http
import (
"github.com/elastic/beats/packetbeat/config"
"github.com/elastic/beats/packetbeat/protos"
"github.com/elastic/beats/packetbeat/protos/tcp"
)
type httpConfig struct {
config.ProtocolCommon `config:",inline"`
SendAllHeaders bool `config:"send_all_headers"`
SendHeaders []string `config:"send_headers"`
SplitCookie bool `config:"split_cookie"`
RealIPHeader string `config:"real_ip_header"`
IncludeBodyFor []string `config:"include_body_for"`
HideKeywords []string `config:"hide_keywords"`
RedactAuthorization bool `config:"redact_authorization"`
MaxMessageSize int `config:"max_message_size"`
}
var (
defaultConfig = httpConfig{
ProtocolCommon: config.ProtocolCommon{
TransactionTimeout: protos.DefaultTransactionExpiration,
},
MaxMessageSize: tcp.TCPMaxDataInStream,
}
)