-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Hide some fields from Elasticsearch #791
Hide some fields from Elasticsearch #791
Comments
There is currently no way to hide those, we consider them an important part of the record |
Hi, Currently I hide these fields using filters in some modules as the table module: ng-repeat="field in fields.list | filter:'!_id' | filter:'!_index' | filter:'!_type'| filter:fieldFilter|orderBy:identity" Yes it's simple, not really clean and you have to change the original code, but.... Regards, |
I have similar issue. Could you point out where to change the filters? |
There are two ways to accomplish that:
For the first solution : src/app/panels/table/module.html line 30 AND 37 (branch master) ng-repeat="field in fields.list | filter:'!_id' | filter:'!_index' | filter:'!_type'| filter:fieldFilter|orderBy:identity" ################## $scope.excludeFields = function(input) {
return input != "@timestamp" && input != "@version" && input != "_id" && input != "_type" && input != "_index" && input != "user";
};
$scope.excludeHashFields = function(input) {
var result = {};
angular.forEach(input, function(value, key) {
if (key != "@timestamp" && key != "@version" && key != "_id" && key != "_type" && key != "_index" && key != "user") {
result[key] = value;
}
});
return result;
}; And now add in src/app/panels/table/module.html line 30 AND 37 (branch master) ng-repeat="field in current_fields|filter:excludeFields|filter:fieldFilter|orderBy:identity" and line 98 - <tr ng-repeat="(key,value) in event.kibana._source track by $index" ng-class-odd="'odd'">
+ <tr ng-repeat="(key,value) in excludeHashFields(event.kibana._source) track by $index" ng-class-odd="'odd'"> Hope this will help you :) Regards, |
I tried the first solution. |
hummmm I don't have enough time to search why it's effectivly not working using the first solution, BUT It's working perfectly using the seconde solution :) |
sorry the method is working fine. |
Hi, |
• Query – |
I thought it would be nice to have the option to select which fields you want to see in the result. You can set these fields in the panel editor in the same way as you set highlighted fields. If you leave it empty it defaults to showing all fields. If this something anyone else likes this solution I'll submit a pull request. |
Hello, |
This issue is still valid in Kibana 5... |
Hi there,
I found there are some new fields displayed by default in the latest version, such as _id, _index, _type. Is there any way I can configure to hide those fields? Because there is no use for them to be displayed in the search result page.
Thanks
The text was updated successfully, but these errors were encountered: