Change the <var...> to %s and add ,$ENV{REMOTE_ADDR} to the sprintf statement.
<var...>
%s
,$ENV{REMOTE_ADDR}
sprintf