Creating correlation id using logical order of messages