-
Notifications
You must be signed in to change notification settings - Fork 22
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
[BUG] process.command_line
field mapping is not properly picked up by the dashboard
#585
[BUG] process.command_line
field mapping is not properly picked up by the dashboard
#585
Comments
ECS |
Removing the curl -sku admin:admin -XGET https://192.168.58.254:9200/_template/states-inventory-processes | jq '."states-inventory-processes".mappings.properties.process.properties.command_line'
{
"type": "match_only_text"
} |
This still happens even after removing the (env) fede@tyner:~/src/ecs (main *)
$ curl -sku admin:admin -XGET https://192.168.58.254:9200/_template/states-inventory-processes | jq '."states-inventory-processes".mappings.properties.agent.properties.host.properties.os.properties.full'
{
"ignore_above": 1024,
"type": "keyword"
}
(env) fede@tyner:~/src/ecs (main *)
$ curl -sku admin:admin -XGET https://192.168.58.254:9200/_template/states-inventory-processes | jq '."states-inventory-processes".mappings.properties.agent.properties.host.properties.os.properties.name'
{
"ignore_above": 1024,
"type": "keyword"
}
(env) fede@tyner:~/src/ecs (main *)
$ curl -sku admin:admin -XGET https://192.168.58.254:9200/_template/states-inventory-processes | jq '."states-inventory-processes".mappings.properties.process.properties.command_line'
{
"type": "wildcard"
} |
It looks like the $ sed -n 22,30p generate.sh
jq 'del(
.mappings.properties.host.properties.os.properties.full.fields,
.mappings.properties.host.properties.os.properties.name.fields,
.mappings.properties.agent.properties.host.properties.os.properties.full.fields,
.mappings.properties.agent.properties.host.properties.os.properties.name.fields,
.mappings.properties.vulnerability.properties.description.fields,
.mappings.properties.process.properties.command_line.fields,
.mappings.properties.process.properties.name.fields
)' "$IN_FILE" > "$OUT_FILE" With $ curl -sku admin:admin -XGET https://192.168.58.254:9200/_template/index-template-processes | jq '."index-template-processes".mappings.properties.process.properties.command_line'
{
"type": "match_only_text"
} Only switching to (env) fede@tyner:~/src/ecs (main *)
$ curl -sku admin:admin -XGET https://192.168.58.254:9200/_template/index-template-processes | jq '."index-template-processes".mappings.properties.process.properties.command_line'
{
"type": "keyword"
} |
Description
The
process.command_line
field is ofwildcard
type with multi-fields.This seems to throw the dashboard off, showing
unknown
as the type:We need to investigate and fix the issue.
The text was updated successfully, but these errors were encountered: