hello
i am using latest version of opensearch and opensearch dashboard
this is my logs below
attributes.cacheKey:
newuser-108
attributes.level:
INFO
attributes.log.file.name:
mylog.log
attributes.timestamp:
2024-12-13 12:43:16.375
attributes.userId:
101
body:
{"timestamp":"2024-12-13 12:43:16.375","level":"INFO","message":"User logged in successfully5.","userId":101,"cacheKey":"newuser-108","service":"Authentication"}
observedTimestamp:
Dec 16, 2024 @ 11:36:30.561
severity.text:
INFO
severity.number:
9
@timestamp:
Dec 13, 2024 @ 18:13:16.375
_id:
WQITzpMB7ejMl5kfSe4u
_type:
-
_index:
test-otel-log
_score:
-
------ 2 --------
attributes.cacheKey:
newuser-110
attributes.level:
WARN
attributes.log.file.name:
mylog.log
attributes.timestamp:
2024-12-13 12:43:16.375
attributes.userId:
101
body:
{"timestamp":"2024-12-13 12:43:16.375","level":"WARN","message":"User logged in successfully7.","userId":101,"cacheKey":"newuser-110","service":"SystemMonitor"}
observedTimestamp:
Dec 16, 2024 @ 11:36:30.561
severity.text:
WARN
severity.number:
13
@timestamp:
Dec 13, 2024 @ 18:13:16.375
_id:
WwITzpMB7ejMl5kfSe4u
_type:
-
_index:
test-otel-log
_score:
-
try to match regex in attributes.cacheKey: newuser-110,newuser-108
attributes.cacheKey : (newuser- ) any number to match regex get only this logs