diff --git a/apps/swh-indexer-storage/entrypoint.sh b/apps/swh-indexer-storage/entrypoint.sh
index 25faf706be853dcf6c7ad8c95d856ad34f5978b5..77e344513756c6f579f1548923e770676359356b 100644
--- a/apps/swh-indexer-storage/entrypoint.sh
+++ b/apps/swh-indexer-storage/entrypoint.sh
@@ -12,9 +12,14 @@ case "$1" in
         exec swh $@
         ;;
     *)
+        EXTRA_CLI_FLAGS=""
+        if [ ! -z "${SWH_LOG_CONFIG_JSON}" ]; then
+            EXTRA_CLI_FLAGS="--log-config-json ${SWH_LOG_CONFIG_JSON}"
+        fi
         echo Starting the swh-indexer-storage API server
         exec gunicorn --bind 0.0.0.0:${PORT} \
              --log-level ${SWH_LOG_LEVEL:-INFO} \
+             ${EXTRA_CLI_FLAGS} \
              --threads ${THREADS} \
              --workers ${WORKERS} \
              --timeout ${TIMEOUT} \
diff --git a/apps/swh-indexer-storage/requirements.txt b/apps/swh-indexer-storage/requirements.txt
index ff184ddfc538caeff6f7be57480709d7f9bdb22b..e777e228a6011d3a9c031144a55ebfa6a94e00ff 100644
--- a/apps/swh-indexer-storage/requirements.txt
+++ b/apps/swh-indexer-storage/requirements.txt
@@ -1 +1,2 @@
 swh-indexer
+python-json-logger