An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Update Fluent Bit configuration file
Andras Bacsai479c2743bd43
diff --git a/app/Actions/Server/InstallLogDrain.php b/app/Actions/Server/InstallLogDrain.phpindex e4e43dc1b4..5ea1d5e439 100644--- a/app/Actions/Server/InstallLogDrain.php+++ b/app/Actions/Server/InstallLogDrain.php@@ -26,6 +26,8 @@ class InstallLogDrainFlush 5Daemon offTag container_logs+ Log_Level debug+ Parsers_File parsers.conf[INPUT]Name forwardBuffer_Chunk_Size 1M@@ -38,7 +40,6 @@ class InstallLogDrainName modifyMatch *Set server_name {$server->name}-[OUTPUT]Name nrlogsMatch *@@ -53,9 +54,10 @@ class InstallLogDrain}$config = base64_encode("[SERVICE]- Flush 1+ Flush 5Daemon offLog_Level debug+ Parsers_File parsers.conf[INPUT]Name forwardtag \${HIGHLIGHT_PROJECT_ID}@@ -75,6 +77,8 @@ class InstallLogDrain[SERVICE]Flush 5Daemon off+ Log_Level debug+ Parsers_File parsers.conf[INPUT]Name forwardBuffer_Chunk_Size 1M@@ -104,7 +108,12 @@ class InstallLogDrain} else {throw new \Exception('Unknown log drain type.');}-+ $parsers = base64_encode("+[PARSER]+ Name empty_line_skipper+ Format regex+ Regex /^(?!\s*$).+/+");$compose = base64_encode("services:coolify-log-drain:@@ -115,6 +124,7 @@ services:- .envvolumes:- ./fluent-bit.conf:/fluent-bit.conf+ - ./parsers.conf:/parsers.confports:- 127.0.0.1:24224:24224");@@ -132,11 +142,13 @@ Files:$config_path = $base_path . '/log-drains';$fluent_bit_config = $config_path . '/fluent-bit.conf';+ $parsers_config = $config_path . '/parsers.conf';$compose_path = $config_path . '/docker-compose.yml';$readme_path = $config_path . '/README.md';$command = ["echo 'Saving configuration'","mkdir -p $config_path",+ "echo '{$parsers}' | base64 -d > $parsers_config","echo '{$config}' | base64 -d > $fluent_bit_config","echo '{$compose}' | base64 -d > $compose_path","echo '{$readme}' | base64 -d > $readme_path",