Python modifies redis list data

requirements:
I need to use python to get the list type data of redis; add a column of additional data on the basis of the original data; how to achieve it?

for example:
original list data:

{"@version":"1","@timestamp":"2018-01-09T05:40:57.119Z","path":"/home/logs/nginx/access.log","host":"web01","type":"system","remote_addr":"183.16.14.2","datetime":"2018-01-09T13:40:56+08:00","http_host":"tc.test.com","upstream_addr":"10.1.1.30:80","request_uri":"POST /is/rf/checkIn/confirm HTTP/1.1","status":"200","request_time":"1.163","body_bytes_send":"227","http_referer":"-","user_agent":"okhttp/3.4.1","http_forwarded":"-","http_cookie":"-"}

becomes the following [finally, a list of content "123456"

has been added.
{"@version":"1","@timestamp":"2018-01-09T05:40:57.119Z","path":"/home/logs/nginx/access.log","host":"web01","type":"system","remote_addr":"183.16.14.2","datetime":"2018-01-09T13:40:56+08:00","http_host":"tc.test.com","upstream_addr":"10.1.1.30:80","request_uri":"POST /is/rf/checkIn/confirm HTTP/1.1","status":"200","request_time":"1.163","body_bytes_send":"227","http_referer":"-","user_agent":"okhttp/3.4.1","http_forwarded":"-","http_cookie":"-","123456"}

how to implement it?

Oct.20,2021

shouldn't this be a dictionary type? Adding a dictionary requires adding a key-value pair, but simply "123456" is not allowed


python create an ordered dictionary, and then add a kv

Menu