I want to push log data to Postgres using telegraf with selected fields to specific table in Postgres

Need to configure the Output plugin as postgres and send data to specific table and push only necessary fields to table

Could anyone suggest the configuration ?