preparing log analytics