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

Unwanted fields displayed in Table Fields (_all, _souce) #515

Closed
taozhyn opened this issue Sep 19, 2013 · 2 comments
Closed

Unwanted fields displayed in Table Fields (_all, _souce) #515

taozhyn opened this issue Sep 19, 2013 · 2 comments
Labels
bug Fixes for quality problems that affect the customer experience

Comments

@taozhyn
Copy link

taozhyn commented Sep 19, 2013

I am currently running "Kibana 3 milestone pre-3".

SIDE NOTE: Is there version number or some other information to specify which version we are using? In the latest version it no longer states the milestone in the top right corner.

Yesterday I tested the latest Kibana. In the Fields picker (part of Table Panel). It is showing unwanted fields; _all, _source, dynamic_template.0.string_template_mapping and dynamic_templates.0.string_template.

I poked around and found out if I changed my elasticsearch templates, it affects which fields are displayed.

I have it reduced to just showing _all and _source by removing the dyanmic_template sections from the Elasticsearch template.

Here is my elasticsearch template:

    {
        "template" : "logtest*",
        "order": 0,
        "settings" : {
            "index.number_of_shards" : 1,
            "index.number_of_replicas" : 0,
            "index.refresh_interval" : "5s",
            "index.store.compress.stored" : true,
            "index.store.compress.tv" : true,
            "index.query.default_field" : "message"
        },
        "mappings": {
            "_default_": { 
                "_all": { "enabled": false },
                "_source": { "compress": true },
                "properties" : {
                    "@timestamp" : { "type" : "date", "index" : "not_analyzed" },
                    "@version" : { "type" : "string", "index" : "not_analyzed" },
                    "message" : { "type" : "string", "index" : "analyzed" },
                    "tags": { "type": "string", "index" : "not_analyzed" }, 
                    "type" : { "type" : "string", "index" : "not_analyzed" }
                }
            }
        }
    }

If I remove _all or _source from my template, then they do not show up in the Fields picker.

As stated in the beginning, I do not see this issue in the previous version of kibana 3. Only in the latest version.

Is there away to ignore unwanted fields?

Are the fields being pulled from mappings? If so, can we only pull the fields listed in properties?

@jgaedicke
Copy link

I think the "dynamic_templates" feature is something you want to use in your elasticsearch templates, if you can't predict every property of your index. But showing them as fields in Kibana is somehow unnecessary, like showing a disabled _all field.

@rashidkpc
Copy link
Contributor

this is definitely a bug, the mapping scraper need to properly handle this

harper-carroll pushed a commit to harper-carroll/kibana that referenced this issue Jul 11, 2016
Added camel case for json serialization.
w33ble added a commit to w33ble/kibana that referenced this issue Sep 13, 2018
* fix: bump @scant/router to 0.0.5

* chore: bump @scant/router again

upstream fixes some error messages and adds tests, which is why it's a minor bump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience
Projects
None yet
Development

No branches or pull requests

3 participants