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

support kv processor #14207

Closed
Wing924 opened this issue Oct 23, 2019 · 4 comments
Closed

support kv processor #14207

Wing924 opened this issue Oct 23, 2019 · 4 comments
Labels
enhancement libbeat needs_team Indicates that the issue/PR needs a Team:* label :Processors Stalled

Comments

@Wing924
Copy link

Wing924 commented Oct 23, 2019

Describe the enhancement:

Both logstash and elasticsearch have kv filter while beats don't have.

example input

level=info ts=2019-10-23T03:00:07.774549823Z caller=shipper.go:349 msg=\"upload new block\" id=01DQV8X2Y6H7JGZEE8CDQXT3YS

example output

{
  "level": "info",
  "ts": "2019-10-23T03:00:07.774549823Z",
  "caller": "shipper.go:349",
  "msg": "upload new block",
  "id": "01DQV8X2Y6H7JGZEE8CDQXT3YS"
}

Describe a specific use case for the enhancement or feature:

many programs such as prometheus use key1=value1 key2=value2 as log format.

@vjsamuel
Copy link
Contributor

this can be done using a dissect processor right?
https://www.elastic.co/guide/en/elasticsearch/reference/master/dissect-processor.html

@philippkahr
Copy link
Contributor

Hi @vjsamuel

I am not quite sure, I run into the same problem with ingest pipelines in elasticsearch whilst writing a filebeat module for Fortinet. #13245 Basically, the Elasticsearch KV processor does not honor quotes the same as the logstash one. elastic/elasticsearch#31786 (comment) I think that the dissect processor is nice but it has one problem Dissect matches a single text field against a defined pattern. let's take something like firewall logs that can contain sometimes more and sometimes fewer fields. I would have to build a lot of patterns that might interfere. I guess @Wing924 has the same idea, that he wants to use the KV processor to automatically split the fields and do a rename on the fields afterward to make them ECS compliant.

@botelastic
Copy link

botelastic bot commented Sep 29, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added Stalled needs_team Indicates that the issue/PR needs a Team:* label labels Sep 29, 2020
@botelastic
Copy link

botelastic bot commented Sep 29, 2020

This issue doesn't have a Team:<team> label.

@botelastic botelastic bot closed this as completed Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement libbeat needs_team Indicates that the issue/PR needs a Team:* label :Processors Stalled
Projects
None yet
Development

No branches or pull requests

4 participants