Confusion about unique visitors counting from server logs parsing

Hi,

I’m trying to understand how unique visitors are counted when parsing server logs at the difference of when we use javascript and cookiee. I really find no clear information. Is it done by looking at the IP for the report period ?

Thanks !