To get everything between two pattern you can use this sed
command:
sed -n '/.* id:.*/,/.* uid:.*/p' log.txt
And you’ll get
-- Request --
some content
....
-- Response --
....
where
-n
suppresses automatic printing of pattern space
p
prints the current pattern space
1
solved Extract part of log file