Closed zoulja closed 3 years ago
I think you want this: https://github.com/Graylog2/graylog2-server/issues/8834
I think you want this: #8834
Yes, it looks like what I want. But I'm really confused how it works. My field has pure type ip But I was not able to find anything using syntax you mentioned: remote_ip:(1.2.3.4/24) Sometimes I get
Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed].
With another IP/mask I receive
Elasticsearch exception [type=token_mgr_error, reason=token_mgr_error: Lexical error at line 1, column 23. Encountered:
after : "/28)"]
I think you want this: #8834
Yes, it looks like what I want. But I'm really confused how it works. My field has pure type ip But I was not able to find anything using syntax you mentioned: remote_ip:(1.2.3.4/24) Sometimes I get
Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed].
With another IP/mask I receive
Elasticsearch exception [type=token_mgr_error, reason=token_mgr_error: Lexical error at line 1, column 23. Encountered: after : "/28)"]
Hello!
Try search like this: remote_ip:(1.2.3.4\/24) OR remote_ip:("1.2.3.4/24")
You'll need to escape with a backslash. or put with double quote
Great, escaping helped, thanks a lot! Submitted cross issue to reflect it in the docs
Great, escaping helped, thanks a lot! Submitted cross issue to reflect it in the docs
I think this was in the docs: https://docs.graylog.org/en/latest/pages/searching/query_language.html?highlight=search#escaping
@zoulja, I guess this is not an actual issue, so we can close it?
@dennisoelkers, yes, let's close it, as it's more documentation issue to me, I didn't know this type already supported
Thanks @zoulja!
Elasticsearch supports field type IP https://www.elastic.co/guide/en/elasticsearch/reference/current/ip.html
This is useful when you need to find which subnetworks affected by some issue. Please add search filter support for this type