Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.8/ Wazuh 4.7.4/ Ubuntu 22.04/ edge or chrome or mozilla
Describe the issue:
Currently cannot be shown a log result when entering an ip address (x.x.x.x) in discover for some string data fields. The ip address resides in a string data type and not all string data types with ip addresses are impacted. I raised this issue with Wazuh although they directed this query to yourselves.
I have an example of another field that uses a string data type that can be searched against without adding the field prior to the data. (ip address).
Example is using ip address 192.168.70.10
If this is entered as is as a query there is no search response for the fields it doesn’t work against.
Other string data type fields work fine.
If I place the field_name:192.168.70.10 then it works fine for the impacted fields.
SQL type is keyword for both. The only difference is that the field name which has spaces between each data entry in the raw syslog log works while the fields that doesn’t has commas.
Configuration:
Since Wazuh is being used, they have precreated the indicies, fields and data types.
You can try to search the ip address with double quotes: “192.168.70.10”, that will transform the query to a match_phrase_query which gives exact matching result.