Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Field generator - add support for IP grok pattern #17998

@jasonslater2000

Description

@jasonslater2000

https://github.com/elastic/beats/blob/master/filebeat/generator/fields/fields.go#L41

the grok pattern "IP" is not included in the map - can we add it so that it maps to ES "ip" type?

var (
types = map[string]string{
"group": "group",
"DATA": "text",
"GREEDYDATA": "text",
"GREEDYMULTILINE": "text",
"HOSTNAME": "keyword",
"IPHOST": "keyword",
"IPORHOST": "keyword",
"LOGLEVEL": "keyword",
"MULTILINEQUERY": "text",
"NUMBER": "long",
"POSINT": "long",
"SYSLOGHOST": "keyword",
"SYSLOGTIMESTAMP": "text",
"LOCALDATETIME": "text",
"TIMESTAMP": "text",
"USERNAME": "keyword",
"WORD": "keyword",
}
)

Metadata

Metadata

Assignees

Labels

Team:Services(Deprecated) Label for the former Integrations-Services teamenhancement

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions