Remove a Filter

Once a filter is created, I am unable to remove it by pressing the ‘X’ icon. We did not see a menu.

Hi,

What kind of filter are you creating? How are you creating it?

Marcus

First i use only the plus sign inside the data Table.
Next, i try a adhoc filter on the graylog datasource.
i think this problem occure fits after our update our graylog from 2.x to 5.x…

Hi,

Please make sure that you’re using version v5 in the datasource configuration of elasticsearch.

Please let me know if this works

Marcus

Yes this is my configuration :slight_smile:

datasource

Hi,

Thanks. I’m not sure where you mean you press the “X” icon. But if you click on source drop down right to the adhoc label in the upper corner of your screenshot you should find a –remove filter. Does that help you?

Marcus

No, and we know this menue because we work with this filter about 4 weeks.

one more information: When we configure our Elastic Datasource we get this failure:

angular.js:12759 GET https://grafana.gh.de/api/datasources/proxy/16/graylog_/mapping 404 (Not Found)
(anonymous) @ angular.js:12759
g @ angular.js:12492
u @ angular.js:12244
u @ angular.js:17051
(anonymous) @ angular.js:17095
$digest @ angular.js:18233
(anonymous) @ angular.js:18462
i @ angular.js:6362
(anonymous) @ angular.js:6642
setTimeout (async)
c.defer @ angular.js:6640
$evalAsync @ angular.js:18460
(anonymous) @ angular.js:16923
c @ angular.js:17095
f @ angular.js:17122
h @ angular.js:17106
resolve @ angular.js:17001
(anonymous) @ datasource_srv.js:101
Promise resolved (async)
loadDatasource @ datasource_srv.js:85
get @ datasource_srv.js:73
t.testDatasource @ ds_edit_ctrl.ts:163
(anonymous) @ ds_edit_ctrl.ts:194
u @ angular.js:17051
(anonymous) @ angular.js:17095
$digest @ angular.js:18233
$apply @ angular.js:18531
(anonymous) @ angular.js:18832
i @ angular.js:6362
(anonymous) @ angular.js:6642
setTimeout (async)
c.defer @ angular.js:6640
M @ angular.js:18831
$applyAsync @ angular.js:18563
u @ angular.js:12544
v @ angular.js:12785
k.onload @ angular.js:12702
XMLHttpRequest.send (async)
(anonymous) @ angular.js:12759
g @ angular.js:12492
u @ angular.js:12244
u @ angular.js:17051
(anonymous) @ angular.js:17095
$digest @ angular.js:18233
$apply @ angular.js:18531
(anonymous) @ angular.js:18832
i @ angular.js:6362
(anonymous) @ angular.js:6642
setTimeout (async)
c.defer @ angular.js:6640
M @ angular.js:18831
$applyAsync @ angular.js:18563
u @ angular.js:12544
v @ angular.js:12785
k.onload @ angular.js:12702
XMLHttpRequest.send (async)
(anonymous) @ angular.js:12759
g @ angular.js:12492
u @ angular.js:12244
u @ angular.js:17051
(anonymous) @ angular.js:17095
$digest @ angular.js:18233
$apply @ angular.js:18531
(anonymous) @ angular.js:27346
dispatch @ jquery.js:5206
g.handle @ jquery.js:5014
datasource.ts:258 {data: {…}, status: 404, config: {…}, statusText: “Not Found”, headers: ƒ, …}config: data: undefinedheaders: Accept: "application/json, text/plain, /"X-Grafana-NoCache: "true"X-Grafana-Org-Id: 1__proto
_: constructor: ƒ Object()arguments: (…)assign: ƒ assign()caller: (…)create: ƒ create()defineProperties: ƒ defineProperties()defineProperty: ƒ defineProperty()entries: ƒ entries()freeze: ƒ freeze()getOwnPropertyDescriptor: ƒ getOwnPropertyDescriptor()getOwnPropertyDescriptors: ƒ getOwnPropertyDescriptors()getOwnPropertyNames: ƒ getOwnPropertyNames()getOwnPropertySymbols: ƒ getOwnPropertySymbols()getPrototypeOf: ƒ getPrototypeOf()is: ƒ is()isExtensible: ƒ isExtensible()isFrozen: ƒ isFrozen()isSealed: ƒ isSealed()keys: ƒ keys()length: 1name: "Object"preventExtensions: ƒ preventExtensions()prototype: {constructor: ƒ, hasOwnProperty: ƒ, isPrototypeOf: ƒ, propertyIsEnumerable: ƒ, toString: ƒ, …}seal: ƒ seal()setPrototypeOf: ƒ setPrototypeOf()values: ƒ values()proto: ƒ ()[[FunctionLocation]]: hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()defineGetter: ƒ defineGetter()defineSetter: ƒ defineSetter()lookupGetter: ƒ lookupGetter()lookupSetter: ƒ lookupSetter()get proto: ƒ proto()set proto: ƒ proto()jsonpCallbackParam: "callback"method: "GET"paramSerializer: ƒ (e)arguments: (…)caller: (…)length: 1name: ""prototype: {constructor: ƒ}proto: ƒ ()[[FunctionLocation]]: angular.js:11207[[Scopes]]: Scopes[2]retry: 0transformRequest: Array(1)0: ƒ (e)length: 1__proto__: Array(0)transformResponse: Array(1)0: ƒ Ft(e,t)length: 1__proto__: Array(0)url: "api/datasources/proxy/16/graylog_
/mapping"proto: constructor: ƒ Object()arguments: (…)assign: ƒ assign()caller: (…)create: ƒ create()defineProperties: ƒ defineProperties()defineProperty: ƒ defineProperty()entries: ƒ entries()freeze: ƒ freeze()getOwnPropertyDescriptor: ƒ getOwnPropertyDescriptor()getOwnPropertyDescriptors: ƒ getOwnPropertyDescriptors()getOwnPropertyNames: ƒ getOwnPropertyNames()getOwnPropertySymbols: ƒ getOwnPropertySymbols()getPrototypeOf: ƒ getPrototypeOf()is: ƒ is()isExtensible: ƒ isExtensible()isFrozen: ƒ isFrozen()isSealed: ƒ isSealed()keys: ƒ keys()length: 1name: "Object"preventExtensions: ƒ preventExtensions()prototype: {constructor: ƒ, hasOwnProperty: ƒ, isPrototypeOf: ƒ, propertyIsEnumerable: ƒ, toString: ƒ, …}seal: ƒ seal()setPrototypeOf: ƒ setPrototypeOf()values: ƒ values()proto: ƒ ()[[FunctionLocation]]: hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()defineGetter: ƒ defineGetter()defineSetter: ƒ defineSetter()lookupGetter: ƒ lookupGetter()lookupSetter: ƒ lookupSetter()get proto: ƒ proto()set proto: ƒ proto()data: error: index: "grafana"index_uuid: "na"reason: "no such index"resource.id: "grafana"resource.type: "index_or_alias"root_cause: Array(1)0: index: "grafana"index_uuid: "na"reason: "no such index"resource.id: "grafana"resource.type: "index_or_alias"type: "index_not_found_exception"proto: Objectlength: 1__proto_: Array(0)concat: ƒ concat()constructor: ƒ Array()copyWithin: ƒ copyWithin()entries: ƒ entries()every: ƒ every()fill: ƒ fill()filter: ƒ filter()find: ƒ find()findIndex: ƒ findIndex()flatMap: ƒ flatMap()flatten: ƒ flatten()forEach: ƒ forEach()includes: ƒ includes()indexOf: ƒ indexOf()join: ƒ join()keys: ƒ keys()lastIndexOf: ƒ lastIndexOf()length: 0map: ƒ map()pop: ƒ pop()push: ƒ push()reduce: ƒ reduce()reduceRight: ƒ reduceRight()reverse: ƒ reverse()shift: ƒ shift()slice: ƒ slice()some: ƒ some()sort: ƒ sort()splice: ƒ splice()toLocaleString: ƒ toLocaleString()toString: ƒ toString()unshift: ƒ unshift()values: ƒ values()Symbol(Symbol.iterator): ƒ values()Symbol(Symbol.unscopables): {copyWithin: true, entries: true, fill: true, find: true, findIndex: true, …}proto: Objecttype: "index_not_found_exception"proto: Objectstatus: 404__proto__: Objectheaders: ƒ (n)status: 404statusText: "Not Found"xhrStatus: "complete"proto: constructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()defineGetter: ƒ defineGetter()defineSetter: ƒ defineSetter()lookupGetter: ƒ lookupGetter()lookupSetter: ƒ lookupSetter()get proto: ƒ proto()set proto: ƒ proto()

BUT – The datasource is working. I can see all elastic* messages from this datasource. I can filter the Messages and so one… (See my first picture).
I am Sure that the menue is funtional with our 2.x Elastic Datasource

Please verify that your indexed are named graylog_*. Maybe they was renamed when you upgraded graylog.

Marcus

Ok, it works! it was a security Problem against our Graylog Server.
After a successfully request we see the index Files and the remove Filter.
Thanks

Great that you got it working!

Have a nice day

Marcus