I have installed pgaudit @ postgresql 10. These are the parameters I changed in postgresql.conf:
shared_preload_libraries = \'pgaudit\' pgaudit.log = \'ALL\'