Hi,
If you want to use uid as key_path, you must extract the key from log in the beginning.
Thus,
1. parse your log in <parse> section with regexp and extract uid from it
2. specify key_path uid
1. It may be too ad-hoc but it is enough to explain the sample
<source>
@type tail
path sample.log
read_from_head true
tag logs
<parse>
@type regexp
# 10.10.10.165;starttime:123443545465657;post;/api/log; 200;{"uid":"xxxx","pwd":"12345"};;endtime:2334556576;{"status":"FAILURE","message":"Invalid user details."}
# Extract address and uid, pwd from above sample.log
expression /^(?<address>\d+\.\d+\.\d+\.\d+)\;.+\{"uid":"(?<uid>.+)","pwd":"(?<pwd>.+)"};.+/
</parse>
</source>
Then {"address":"10.10.10.165","uid":"xxxx","pwd":"12345"} record is extracted and processed in <match **> section
<match .**>
@type redis_store_seldon
key_path uid
store_type string
</match>
So you can refer key_path uid because the record contains "uid" as a key.
Regards,