Hi there,
I'm pretty new with Kibana, so my "terms" could be wrong or inaccurate. I apologize in advance for that.
We are using a software that scans a share hosted on a NAS and logs 145 different metadata in an Elastic DB. From that list, I want to report specific metrics, with or without a query.
One report I have to build is: Files with rights that deny administrator access or a given user / group
So, I created a visualization (data table) with metrics "count" and buckets "split rows":
"title": "Share security list",
"type": "table",
"params": {
"perPage": 10,
"showPartialRows": false,
"showMetricsAtAllLevels": false,
"sort": {
"columnIndex": null,
"direction": null
},
"showTotal": true,
"totalFunc": "sum"
},
"aggs": [
{
"id": "1",
"enabled": true,
"type": "count",
"schema": "metric",
"params": {}
},
{
"id": "2",
"enabled": true,
"type": "terms",
"schema": "bucket",
"params": {
"field": "generalMetadata.localPath",
"size": 5,
"order": "desc",
"orderBy": "_key",
"otherBucket": false,
"otherBucketLabel": "Other",
"missingBucket": false,
"missingBucketLabel": "Missing",
"customLabel": "Local path"
}
},
{
"id": "3",
"enabled": true,
"type": "terms",
"schema": "bucket",
"params": {
"field": "cifsMetadata.fileSecurity.group.accountName",
"size": 5,
"order": "desc",
"orderBy": "_key",
"otherBucket": false,
"otherBucketLabel": "Other",
"missingBucket": false,
"missingBucketLabel": "Missing",
"customLabel": "Group"
}
},
{
"id": "4",
"enabled": true,
"type": "terms",
"schema": "bucket",
"params": {
"field": "cifsMetadata.fileSecurity.group.authorityName",
"size": 5,
"order": "desc",
"orderBy": "_key",
"otherBucket": false,
"otherBucketLabel": "Other",
"missingBucket": false,
"missingBucketLabel": "Missing",
"customLabel": "Domain"
}
},
{
"id": "5",
"enabled": true,
"type": "terms",
"schema": "bucket",
"params": {
"field": "cifsMetadata.fileSecurity.group.sidString",
"size": 5,
"order": "desc",
"orderBy": "_key",
"otherBucket": false,
"otherBucketLabel": "Other",
"missingBucket": false,
"missingBucketLabel": "Missing",
"customLabel": "Group SID"
}
},
{
"id": "6",
"enabled": true,
"type": "terms",
"schema": "bucket",
"params": {
"field": "cifsMetadata.owner",
"size": 5,
"order": "desc",
"orderBy": "_key",
"otherBucket": false,
"otherBucketLabel": "Other",
"missingBucket": false,
"missingBucketLabel": "Missing",
"customLabel": "Owner"
}
},
{
"id": "7",
"enabled": true,
"type": "terms",
"schema": "bucket",
"params": {
"field": "cifsMetadata.fileSecurity.owner.sidString",
"size": 5,
"order": "desc",
"orderBy": "_key",
"otherBucket": false,
"otherBucketLabel": "Other",
"missingBucket": false,
"missingBucketLabel": "Missing",
"customLabel": "Owner SID"
}
}
]
}
I'm pretty happy with this visualization, but I'm looking for 2 things:
- Does Kibana have a size limit for a split row? (I could have to generate this visualization for more than a million of lines...)
- How may I query this list to narrow it and report only "localpath" that doesn't contain a specific term?
For example, I have "Share A" with owners "Bob" and "Admin", and "share B" with the owner "Bob" only. It should have the owner "Admin" then, in theory, but it's not in real life... so, I'm looking to report/highlight this "share B". I hope you get what I mean!
Many thanks for your help
Cheers
G.