To enable usage logging we have to go over 3 sections:
In the "Logging Settings" make sure to check "Enable logging" and specify the path of the log file. Move on to the "Analysis Processing" section and check "Enable usage analysis processing" and select a time on where you want to run the process.
In the "Processing Settings" section make sure to check "Enable advanced usage analysis processing". Furthermore, make sure to check "Enable search query logging" under "Search Query Logging" section.