From 6c3b5efcca6c0ad1f23bb1fc4027625a00dedd15 Mon Sep 17 00:00:00 2001
From: Roshni Sarangadharan <rsarangadharan@gitlab.com>
Date: Tue, 22 Oct 2024 09:44:16 +0000
Subject: [PATCH] Added job log related content links

---
 doc/administration/cicd/job_logs.md | 15 ++++++++++++---
 doc/ci/jobs/index.md                |  2 ++
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/doc/administration/cicd/job_logs.md b/doc/administration/cicd/job_logs.md
index 5386c09542163..acfdb466b485c 100644
--- a/doc/administration/cicd/job_logs.md
+++ b/doc/administration/cicd/job_logs.md
@@ -11,7 +11,7 @@ DETAILS:
 **Offering:** Self-managed
 
 Job logs are sent by a runner while it's processing a job. You can see
-logs in job pages, pipelines, email notifications, and so on.
+logs in places like job pages, pipelines, and email notifications.
 
 ## Data flow
 
@@ -147,6 +147,12 @@ job logs are automatically migrated to it along with the other job artifacts.
 
 See "Phase 3: uploading" in [Data flow](#data-flow) to learn about the process.
 
+## Maximum log file size
+
+The job log file size limit in GitLab is 100 megabytes by default.
+Any job that exceeds the limit is marked as failed, and dropped by the runner.
+For more details, see [Maximum file size for job logs](../../administration/instance_limits.md#maximum-file-size-for-job-logs).
+
 ## Prevent local disk usage
 
 If you want to avoid any local disk usage for job logs,
@@ -158,11 +164,14 @@ you can do so using one of the following options:
 
 ## How to remove job logs
 
-There isn't a way to automatically expire old job logs, but it's safe to remove
+There isn't a way to automatically expire old job logs. However, it's safe to remove
 them if they're taking up too much space. If you remove the logs manually, the
 job output in the UI is empty.
 
-For example, to delete all job logs older than 60 days, run the following
+For details on how to delete job logs by using GitLab CLI,
+see [Delete job logs](../../user/storage_management_automation.md#delete-job-logs).
+
+Alternatively, you can delete job logs with shell commands. For example, to delete all job logs older than 60 days, run the following
 command from a shell in your GitLab instance.
 
 NOTE:
diff --git a/doc/ci/jobs/index.md b/doc/ci/jobs/index.md
index 2b6978af14f42..fac8fdde8f405 100644
--- a/doc/ci/jobs/index.md
+++ b/doc/ci/jobs/index.md
@@ -310,6 +310,8 @@ You can view the contents of a job log in full screen mode by clicking **Show fu
 
 To use full screen mode, your web browser must also support it. If your web browser does not support full screen mode, then the option is not available.
 
+Job logs divided into sections can be collapsed or expanded. For more details, see [Expand and collapse job log sections](../yaml/script.md#expand-and-collapse-job-log-sections).
+
 ## Deployment jobs
 
 Deployment jobs are a specific kind of CI job in that they deploy code to
-- 
GitLab