An information processing apparatus includes a processor configured to: determine whether a state of a user that views a virtual space is a predetermined state, based on state information indicating the state of the user and condition information for determining that the user is in the predetermined state; and start collection of log information upon determining that the state of the user is the predetermined state.