diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:01:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:01:30 +0000 |
commit | 6beeb1b708550be0d4a53b272283e17e5e35fe17 (patch) | |
tree | 1ce8673d4aaa948e5554000101f46536a1e4cc29 /docs/manual/programs/rotatelogs.html | |
parent | Initial commit. (diff) | |
download | apache2-upstream.tar.xz apache2-upstream.zip |
Adding upstream version 2.4.57.upstream/2.4.57upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | docs/manual/programs/rotatelogs.html | 17 | ||||
-rw-r--r-- | docs/manual/programs/rotatelogs.html.en | 321 | ||||
-rw-r--r-- | docs/manual/programs/rotatelogs.html.fr.utf8 | 341 | ||||
-rw-r--r-- | docs/manual/programs/rotatelogs.html.ko.euc-kr | 175 | ||||
-rw-r--r-- | docs/manual/programs/rotatelogs.html.tr.utf8 | 312 |
5 files changed, 1166 insertions, 0 deletions
diff --git a/docs/manual/programs/rotatelogs.html b/docs/manual/programs/rotatelogs.html new file mode 100644 index 0000000..0680a21 --- /dev/null +++ b/docs/manual/programs/rotatelogs.html @@ -0,0 +1,17 @@ +# GENERATED FROM XML -- DO NOT EDIT + +URI: rotatelogs.html.en +Content-Language: en +Content-type: text/html; charset=UTF-8 + +URI: rotatelogs.html.fr.utf8 +Content-Language: fr +Content-type: text/html; charset=UTF-8 + +URI: rotatelogs.html.ko.euc-kr +Content-Language: ko +Content-type: text/html; charset=EUC-KR + +URI: rotatelogs.html.tr.utf8 +Content-Language: tr +Content-type: text/html; charset=UTF-8 diff --git a/docs/manual/programs/rotatelogs.html.en b/docs/manual/programs/rotatelogs.html.en new file mode 100644 index 0000000..e768ae8 --- /dev/null +++ b/docs/manual/programs/rotatelogs.html.en @@ -0,0 +1,321 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head> +<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> +<!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>rotatelogs - Piped logging program to rotate Apache logs - Apache HTTP Server Version 2.4</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> +<script src="../style/scripts/prettify.min.js" type="text/javascript"> +</script> + +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p> +<p class="apache">Apache HTTP Server Version 2.4</p> +<img alt="" src="../images/feather.png" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">Programs</a></div><div id="page-content"><div id="preamble"><h1>rotatelogs - Piped logging program to rotate Apache logs</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="../en/programs/rotatelogs.html" title="English"> en </a> | +<a href="../fr/programs/rotatelogs.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ko/programs/rotatelogs.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../tr/programs/rotatelogs.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> +</div> + + <p><code>rotatelogs</code> is a simple program for use in + conjunction with Apache's piped logfile feature. It supports + rotation based on a time interval or maximum size of the log.</p> +</div> +<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis">Synopsis</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#options">Options</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#examples">Examples</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#portability">Portability</a></li> +</ul><h3>See also</h3><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="synopsis" id="synopsis">Synopsis</a></h2> + + <p><code><strong>rotatelogs</strong> + [ -<strong>l</strong> ] + [ -<strong>L</strong> <var>linkname</var> ] + [ -<strong>p</strong> <var>program</var> ] + [ -<strong>f</strong> ] + [ -<strong>D</strong> ] + [ -<strong>t</strong> ] + [ -<strong>v</strong> ] + [ -<strong>e</strong> ] + [ -<strong>c</strong> ] + [ -<strong>n</strong> <var>number-of-files</var> ] + <var>logfile</var> + <var>rotationtime</var>|<var>filesize</var>(B|K|M|G) + [ <var>offset</var> ]</code></p> +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="options" id="options">Options</a></h2> + +<dl> + +<dt><code>-l</code></dt> +<dd>Causes the use of local time rather than GMT as the base for the +interval or for <code>strftime(3)</code> formatting with size-based +rotation.</dd> + +<dt><code>-L</code> <var>linkname</var></dt> +<dd><p>Causes a hard link to be made from the current logfile +to the specified link name. This can be used to watch +the log continuously across rotations using a command like +<code>tail -F linkname</code>.</p> +<p>If the linkname is not an absolute +path, it is relative to <code>rotatelogs</code>' working directory, +which is the <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> when +<code>rotatelogs</code> is run by the server. +</p> +</dd> + +<dt><code>-p</code> <var>program</var></dt> + +<dd>If given, <code>rotatelogs</code> will execute the specified +program every time a new log file is opened. The filename of the +newly opened file is passed as the first argument to the program. If +executing after a rotation, the old log file is passed as the second +argument. <code>rotatelogs</code> does not wait for the specified +program to terminate before continuing to operate, and will not log +any error code returned on termination. The spawned program uses the +same stdin, stdout, and stderr as rotatelogs itself, and also inherits +the environment.</dd> + +<dt><code>-f</code></dt> +<dd>Causes the logfile to be opened immediately, as soon as +<code>rotatelogs</code> starts, instead of waiting for the +first logfile entry to be read (for non-busy sites, there may be +a substantial delay between when the server is started +and when the first request is handled, meaning that the +associated logfile does not "exist" until then, which +causes problems from some automated logging tools)</dd> + +<dt><code>-D</code></dt> +<dd>Creates the parent directories of the path that the log file will be +placed in if they do not already exist. This allows <code>strftime(3)</code> +formatting to be used in the path and not just the filename.</dd> + +<dt><code>-t</code></dt> +<dd>Causes the logfile to be truncated instead of rotated. This is +useful when a log is processed in real time by a command like tail, +and there is no need for archived data. No suffix will be added to +the filename, however format strings containing '%' characters +will be respected. +</dd> + +<dt><code>-T</code></dt> +<dd>Causes all but the initial logfile to be truncated when opened. +This is useful when the format string contains something that will +loop around, such as the day of the month. Available in 2.4.56 and later. +</dd> + + +<dt><code>-v</code></dt> +<dd>Produce verbose output on STDERR. The output contains +the result of the configuration parsing, and all file open and +close actions.</dd> + +<dt><code>-e</code></dt> +<dd>Echo logs through to stdout. Useful when logs need to be further +processed in real time by a further tool in the chain.</dd> + +<dt><code>-c</code></dt> +<dd>Create log file for each interval, even if empty.</dd> + +<dt><code>-n <var>number-of-files</var></code></dt> +<dd>Use a circular list of filenames without timestamps. This option overwrites +log files at startup and during rotation. With -n 3, the series of log +files opened would be "logfile", "logfile.1", "logfile.2", then overwriting +"logfile". +<br /> +When this program first opens "logfile", the file will only be truncated if <code>-t</code> is also provided. Every subsequent rotation will +always begin with truncation of the target file. For size based rotation without <code>-t</code> and existing log files in place, +this option may result in unintuitive behavior such as initial log entries being sent to "logfile.1", and entries in "logfile.1" not being preserved +even if later "logfile.n" have not yet been used. +<br /> +Available in 2.4.5 and later.</dd> + +<dt><code><var>logfile</var></code></dt> + +<dd><p>The path plus basename of the logfile. If <var>logfile</var> +includes any '%' characters, it is treated as a format string for +<code>strftime(3)</code>. Otherwise, the suffix +<var>.nnnnnnnnnn</var> is automatically added and is the time in +seconds (unless the -t option is used). Both formats compute the +start time from the beginning of the current period. For example, +if a rotation time of 86400 is specified, the hour, minute, and +second fields created from the <code>strftime(3)</code> format will +all be zero, referring to the beginning of the current 24-hour +period (midnight).</p> +<p>When using <code>strftime(3)</code> filename formatting, +be sure the log file format has enough granularity to produce +a different file name each time the logs are rotated. Otherwise +rotation will overwrite the same file instead of starting a new +one. For example, if <var>logfile</var> was +<code>/var/log/errorlog.%Y-%m-%d</code> with log rotation at 5 +megabytes, but 5 megabytes was reached twice in the same day, the +same log file name would be produced and log rotation would keep +writing to the same file.</p> +<p>If the logfile is not an absolute +path, it is relative to <code>rotatelogs</code>' working directory, +which is the <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> when +<code>rotatelogs</code> is run by the server. +</p> +</dd> + +<dt><code><var>rotationtime</var></code></dt> + +<dd>The time between log file rotations in seconds. The rotation +occurs at the beginning of this interval. For example, if the +rotation time is 3600, the log file will be rotated at the beginning +of every hour; if the rotation time is 86400, the log file will be +rotated every night at midnight. (If no data is logged during an +interval, no file will be created.)</dd> + +<dt><code><var>filesize</var>(B|K|M|G)</code></dt> + +<dd>The maximum file size in followed by exactly one of the letters +<code>B</code> (Bytes), <code>K</code> (KBytes), <code>M</code> (MBytes) +or <code>G</code> (GBytes). +<p> +When time and size are specified, the size must be given after the time. +Rotation will occur whenever either time or size limits are reached. +</p> +</dd> + +<dt><code><var>offset</var></code></dt> + +<dd>The number of minutes offset from UTC. If omitted, zero is +assumed and UTC is used. For example, to use local time in the zone +UTC -5 hours, specify a value of <code>-300</code> for this argument. +In most cases, <code>-l</code> should be used instead of specifying +an offset.</dd> + +</dl> +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="examples" id="examples">Examples</a></h2> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs /var/log/logfile 86400" common</pre> +</div> + + <p>This creates the files /var/log/logfile.nnnn where nnnn is + the system time at which the log nominally starts (this time + will always be a multiple of the rotation time, so you can + synchronize cron scripts with it). At the end of each rotation + time (here after 24 hours) a new log is started.</p> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs -l /var/log/logfile.%Y.%m.%d 86400" common</pre> +</div> + + <p>This creates the files /var/log/logfile.yyyy.mm.dd where + yyyy is the year, mm is the month, and dd is the day of the month. + Logging will switch to a new file every day at midnight, local time.</p> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs /var/log/logfile 5M" common</pre> +</div> + + <p>This configuration will rotate the logfile whenever it reaches + a size of 5 megabytes.</p> + +<div class="example"><pre class="prettyprint lang-config">ErrorLog "|bin/rotatelogs /var/log/errorlog.%Y-%m-%d-%H_%M_%S 5M"</pre> +</div> + <p>This configuration will rotate the error logfile whenever it + reaches a size of 5 megabytes, and the suffix to the logfile name + will be created of the form + <code>errorlog.YYYY-mm-dd-HH_MM_SS</code>.</p> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs -t /var/log/logfile 86400" common</pre> +</div> + + <p>This creates the file <code>/var/log/logfile</code>, truncating the file at + startup and then truncating the file once per day. It is expected + in this scenario that a separate process (such as tail) would + process the file in real time.</p> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs -T /var/log/logfile.%d 86400" common</pre> +</div> + +<p>If the server is started (or restarted) on the first of the month, this +appends to <code>/var/log/logfile.01</code>. When a log entry is written on the +second of the month, <code>/var/log/logfile.02</code> is truncated and new entries +will be added to the top. This example keeps approximately 1 months worth of +logs without external maintenance.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="portability" id="portability">Portability</a></h2> + +<p>The following logfile format string substitutions should be +supported by all <code>strftime(3)</code> implementations, see +the <code>strftime(3)</code> man page for library-specific +extensions.</p> + +<table class="bordered"><tr><td><code>%A</code></td><td>full weekday name (localized)</td></tr> +<tr class="odd"><td><code>%a</code></td><td>3-character weekday name (localized)</td></tr> +<tr><td><code>%B</code></td><td>full month name (localized)</td></tr> +<tr class="odd"><td><code>%b</code></td><td>3-character month name (localized)</td></tr> +<tr><td><code>%c</code></td><td>date and time (localized)</td></tr> +<tr class="odd"><td><code>%d</code></td><td>2-digit day of month</td></tr> +<tr><td><code>%H</code></td><td>2-digit hour (24 hour clock)</td></tr> +<tr class="odd"><td><code>%I</code></td><td>2-digit hour (12 hour clock)</td></tr> +<tr><td><code>%j</code></td><td>3-digit day of year</td></tr> +<tr class="odd"><td><code>%M</code></td><td>2-digit minute</td></tr> +<tr><td><code>%m</code></td><td>2-digit month</td></tr> +<tr class="odd"><td><code>%p</code></td><td>am/pm of 12 hour clock (localized)</td></tr> +<tr><td><code>%S</code></td><td>2-digit second</td></tr> +<tr class="odd"><td><code>%U</code></td><td>2-digit week of year +(Sunday first day of week)</td></tr> +<tr><td><code>%W</code></td><td>2-digit week of year +(Monday first day of week)</td></tr> +<tr class="odd"><td><code>%w</code></td><td>1-digit weekday +(Sunday first day of week)</td></tr> +<tr><td><code>%X</code></td><td>time (localized)</td></tr> +<tr class="odd"><td><code>%x</code></td><td>date (localized)</td></tr> +<tr><td><code>%Y</code></td><td>4-digit year</td></tr> +<tr class="odd"><td><code>%y</code></td><td>2-digit year</td></tr> +<tr><td><code>%Z</code></td><td>time zone name</td></tr> +<tr class="odd"><td><code>%%</code></td><td>literal `%'</td></tr> +</table> + +</div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="../en/programs/rotatelogs.html" title="English"> en </a> | +<a href="../fr/programs/rotatelogs.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ko/programs/rotatelogs.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../tr/programs/rotatelogs.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> +</div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div> +<script type="text/javascript"><!--//--><![CDATA[//><!-- +var comments_shortname = 'httpd'; +var comments_identifier = 'http://httpd.apache.org/docs/2.4/programs/rotatelogs.html'; +(function(w, d) { + if (w.location.hostname.toLowerCase() == "httpd.apache.org") { + d.write('<div id="comments_thread"><\/div>'); + var s = d.createElement('script'); + s.type = 'text/javascript'; + s.async = true; + s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; + (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); + } + else { + d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); + } +})(window, document); +//--><!]]></script></div><div id="footer"> +<p class="apache">Copyright 2023 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- +if (typeof(prettyPrint) !== 'undefined') { + prettyPrint(); +} +//--><!]]></script> +</body></html>
\ No newline at end of file diff --git a/docs/manual/programs/rotatelogs.html.fr.utf8 b/docs/manual/programs/rotatelogs.html.fr.utf8 new file mode 100644 index 0000000..fc71646 --- /dev/null +++ b/docs/manual/programs/rotatelogs.html.fr.utf8 @@ -0,0 +1,341 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"><head> +<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> +<!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>rotatelogs - Rotation des journaux d'Apache par redirection de + ces derniers dans un "pipe" - Serveur HTTP Apache Version 2.4</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> +<script src="../style/scripts/prettify.min.js" type="text/javascript"> +</script> + +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p> +<p class="apache">Serveur HTTP Apache Version 2.4</p> +<img alt="" src="../images/feather.png" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">Serveur HTTP</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">Programmes</a></div><div id="page-content"><div id="preamble"><h1>rotatelogs - Rotation des journaux d'Apache par redirection de + ces derniers dans un "pipe"</h1> +<div class="toplang"> +<p><span>Langues Disponibles: </span><a href="../en/programs/rotatelogs.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/programs/rotatelogs.html" title="Français"> fr </a> | +<a href="../ko/programs/rotatelogs.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../tr/programs/rotatelogs.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> +</div> + + <p><code>rotatelogs</code> est un programme simple à utiliser en + conjonction avec la fonctionnalité d'Apache de redirection dans un + "pipe" des fichiers journaux. Il supporte une rotation basée sur un + intervalle de temps ou une taille maximale du journal.</p> +</div> +<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis">Syntaxe</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#options">Options</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#examples">Exemples</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#portability">Portabilité</a></li> +</ul><h3>Voir aussi</h3><ul class="seealso"><li><a href="#comments_section">Commentaires</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="synopsis" id="synopsis">Syntaxe</a></h2> + + <p><code><strong>rotatelogs</strong> + [ -<strong>l</strong> ] + [ -<strong>L</strong> <var>nom-lien</var> ] + [ -<strong>p</strong> <var>programme</var> ] + [ -<strong>f</strong> ] + [ -<strong>D</strong> ] + [ -<strong>t</strong> ] + [ -<strong>v</strong> ] + [ -<strong>e</strong> ] + [ -<strong>c</strong> ] + [ -<strong>n</strong> <var>nombre-de-fichiers</var> ] + <var>fichier-journal</var> + <var>heure-de-rotation</var>|<var>taille-fichier</var>(B|K|M|G) + [ <var>décalage</var> ]</code></p> +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="options" id="options">Options</a></h2> + +<dl> + +<dt><code>-l</code></dt> +<dd>Utilise le temps local plutôt que GMT comme base pour l'intervalle +de temps ou pour le formatage de <code>strftime(3)</code> avec une +rotation basée sur la taille.</dd> + +<dt><code>-L</code> <var>nom-lien</var></dt> +<dd><p>Etablit un lien physique entre le fichier journal courant et le lien +spécifié. Cette option permet de consulter le journal de manière +continue malgré les rotations via une commande du style <code>tail -F +nom-lien</code>.</p> +<p>Si le nom du lien spécifié n'est pas un chemin absolu, il est relatif au +répertoire de travail de <code>rotatelogs</code> qui correspond à la valeur de +la directive <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> lorsque la commande +<code>rotatelogs</code> est exécutée par le serveur. +</p> +</dd> + +<dt><code>-p</code> <var>programme</var></dt> +<dd>Avec cette option, <code>rotatelogs</code> exécutera le programme +<var>programme</var> chaque fois qu'un nouveau fichier journal sera +ouvert. Le nom du fichier nouvellement ouvert est passé comme premier +argument au programme. Si l'exécution se produit après une rotation, +l'ancien nom du fichier journal est passé au programme comme second +argument. <code>rotatelogs</code> +n'attend pas la fin du <var>programme</var> pour continuer son +exécution, et cessera tout enregistrement de codes d'erreur lorsqu'il +aura terminé son processus. Le <var>programme</var> utilise les mêmes +canaux stdin, stdout, et stderr que rotatelogs, et hérite de son +environnement.</dd> + +<dt><code>-f</code></dt> +<dd>Ouvre le fichier journal immédiatement, dès que +<code>rotatelogs</code> démarre, au lieu d'attendre la lecture de la +première entrée de journal (pour les sites peu chargés, il peut +s'écouler un temps substantiel entre le démarrage du serveur et le +traitement de la première requête, temps pendant lequel le fichier +journal associé n'"existe" pas, ce qui peut causer des problèmes à +certains utilitaires de journalisation automatiques).</dd> + +<dt><code>-D</code></dt> +<dd>Crée les répertoires parents du chemin du fichier journal s'ils +n'existent pas déjà , ce qui permet d'utiliser le format +<code>strftime(3)</code> dans les chemins au lieu du nom de fichier seul.</dd> + +<dt><code>-t</code></dt> +<dd>Provoque une troncature du fichier journal au lieu d'une rotation. +Cela peut s'avérer utile lorsqu'un journal est élaboré en temps réel par +une commande telle que tail, l'archivage des données n'étant ici pas +nécessaire. Si aucun suffixe n'est ajouté au nom de fichier, les +chaînes de format contenant des caractères '%' sont cependant +respectées. +</dd> + +<dt><code>-T</code></dt> +<dd>Provoque la troncature de tous les fichiers journaux lors de leur ouverture, +à l'exception du fichier journal initial. Cela s'avère utile lorsque la chaîne +de formatage contient quelque chose qui va se répéter de manière cyclique, comme +le jour du mois par exemple. Disponible à partir de la version 2.4.56 du serveur +HTTP Apache. +</dd> + + +<dt><code>-v</code></dt> +<dd>Affiche une sortie verbeuse sur STDERR. La sortie contient le +résultat de l'interprétation de la configuration, ainsi que toutes les +opérations d'ouverture et de fermeture de fichiers.</dd> + +<dt><code>-c</code></dt> +<dd>Crée un fichier journal pour chaque intervalle, même s'il est vide.</dd> + +<dt><code>-e</code></dt> +<dd>Envoie les messages de journalisation vers stdout. Ceci s'avère +utile lorsque les journaux doivent être traités par un autre programme.</dd> + +<dt><code>-n <var>nombre-de-fichiers</var></code></dt> +<dd>Utilise une liste circulaire de noms de fichiers sans repères de temps. +Cette option permet d'écraser des fichiers journaux au démarrage et au cours de +la rotation. Avec -n 3, la série de fichiers conservés sera "logfile", +"logfile.1", "logfile.2" avec écrasement de "logfile". +<br /> +Lorsque ce programme ouvre « logfile », ce dernier sera seulement tronqué si +l'option <code>-t</code> est aussi spécifiée. Toute rotation subséquente sera +précédée d'une troncature du fichier cible. Dans le cas d'une rotation basée sur +la taille sans l'option <code>-t</code> et si des fichiers journaux sont déjà en +place, cette option peut provoquer des résultats inattendus comme l'envoi des +entrées de journal initiales vers « logfile.1 », les entrées de « logfile.1 » +n'étant pas conservées, même si des fichiers « logfile.n » n'ont pas encore été +utilisés. +<br /> +Disponible à partir de la version 2.4.5 du serveur HTTP Apache.</dd> + +<dt><code><var>fichier-journal</var></code></dt> +<dd><p>Le chemin et le nom de base du fichier journal. Si +<var>fichier-journal</var> contient des caractères '%', il est considéré +comme une chaîne de formatage pour <code>strftime(3)</code>. Dans le cas +contraire, le suffixe <var>.nnnnnnnnnn</var> est automatiquement ajouté +et correspond au temps en secondes (sauf si l'option -t est spécifiée). +Les deux formats calculent le temps +de démarrage depuis le début de la période courante. Par exemple, si un +temps de rotation de 86400 est spécifié, les champs heure, minute et +seconde créés à partir du format <code>strftime(3)</code> auront tous +pour valeur 0, en référence au début de la période de 24 heures courante +(minuit).</p> +<p>Si vous utilisez le formatage de noms de fichiers +<code>strftime(3)</code>, assurez-vous que le format du fichier journal +possède une granularité suffisamment importante pour générer un nom de +fichier différent à chaque rotation des journaux. Si ce n'est pas le +cas, la rotation va écraser le fichier existant au lieu d'en générer un +nouveau. Par exemple, si <var>fichier-journal</var> était +<code>/var/log/errorlog.%Y-%m-%d</code> avec une rotation à 5 +mégaoctets, et si la limite de 5 mégaoctets a été atteinte deux fois +dans la même journée, le même nom de fichier va être généré, et la +rotation va écraser le fichier existant.</p> +<p>Si le nom du fichier journal n'est pas un chemin absolu, il est relatif au +répertoire de travail de <code>rotatelogs</code> qui correspond à la valeur de +la directive <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> lorsque la commande +<code>rotatelogs</code> est exécutée par le serveur. +</p> +</dd> + +<dt><code><var>temps-rotation</var></code></dt> + +<dd>Le temps entre deux rotations des fichiers journaux en secondes. La +rotation intervient au début de cet intervalle. Par exemple, si le temps +de rotation est de 3600, la rotation des fichiers journaux s'effectuera +au début de chaque heure ; si le temps de rotation est de 86400, la +rotation des fichiers journaux s'effectuera chaque nuit à minuit. (Si +aucune donnée n'est enregistrée au cours d'un intervalle, aucun fichier +ne sera créé).</dd> + +<dt><code><var>taille-fichier</var>(B|K|M|G)</code></dt> + +<dd>La taille maximale du fichier suivie par une des lettres +<code>B</code> (Octets), <code>K</code> (KOctets), <code>M</code> (MOctets) +ou <code>G</code> (GOctets). +<p> +Lorsque temps et taille sont spécifiés, la taille doit l'être après le +temps. La rotation interviendra alors aussitôt que l'une des deux limites +(temps ou taille) sera atteinte. +</p> +</dd> + +<dt><code><var>décalage</var></code></dt> + +<dd>Le décalage en minutes par rapport au temps UTC. Par défaut, le +décalage est considéré comme nul et c'est le temps UTC qui est utilisé. +Par exemple, pour utiliser le temps local de la zone UTC -5 heures, +spécifiez une valeur de <code>-300</code> pour cette option. Dans la +plupart des cas, il vaut mieux utiliser l'option <code>-l</code> que +spécifier un décalage.</dd> + +</dl> +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="examples" id="examples">Exemples</a></h2> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs /var/log/fichier-journal 86400" common</pre> +</div> + + <p>Cette directive crée les fichiers /var/log/fichier-journal.nnnn + où nnnn correspond au temps système auquel la journalisation + démarre effectivement (ce temps sera toujours un multiple du temps + de rotation, si bien que vous pouvez synchroniser les scripts cron + avec lui). A la fin de chaque temps de rotation (ici après 24 + heures), une nouvelle journalisation démarre.</p> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs -l /var/log/fichier-journal.%Y.%m.%d 86400" common</pre> +</div> + + <p>Cette directive crée les fichiers + /var/log/fichier-journal.yyyy.mm.dd où yyyy correspond à l'année, + mm au mois et dd au jour du mois. La journalisation basculera vers + un nouveau fichier chaque jour à minuit, temps local.</p> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs /var/log/fichier-journal 5M" common</pre> +</div> + + <p>Cette directive va effectuer une rotation du fichier journal + chaque fois que la taille de ce dernier atteindra 5 MOctets.</p> + +<div class="example"><pre class="prettyprint lang-config">ErrorLog "|bin/rotatelogs /var/log/journal-erreurs.%Y-%m-%d-%H_%M_%S 5M"</pre> +</div> + <p>Cette directive va effectuer une rotation du fichier journal des + erreurs chaque fois que la taille de ce dernier atteindra 5 + MOctets, et le nom du fichier journal se présentera sous + la forme <code>journal-erreurs.YYYY-mm-dd-HH_MM_SS</code>.</p> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs -t /var/log/journal 86400" common</pre> +</div> + + <p>Cet exemple crée le fichier <code>/var/log/journal</code> en le + tronquant au démarrage, puis une fois par jour. Ce scénario implique qu'un + processus séparé (tel que tail) traite le fichier en temps réel.</p> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs -T /var/log/logfile.%d 86400" common</pre> +</div> + +<p>Si le serveur est démarré ou redémarré le premier du mois, cela s'ajoute à la +fin de <code>/var/log/logfile.01</code>. Lorsqu'une entrée de journal est écrite +le deux du mois, <code>/var/log/logfile.02</code> est tronqué et les nouvelles +entrées seront ajoutées à partir du début du fichier. Cet exemple conserve +environ 1 mois de journaux sans nécessiter de maintenance externe.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="portability" id="portability">Portabilité</a></h2> + +<p>Les substitutions des chaînes de format du fichier journal suivantes +doivent être supportées par toutes les implémentations de +<code>strftime(3)</code> ; voir la page de manuel de +<code>strftime(3)</code> pour les extensions spécifiques à une +bibliothèque.</p> + +<table class="bordered"><tr><td><code>%A</code></td><td>nom du jour de la semaine en entier +(localisé)</td></tr> +<tr class="odd"><td><code>%a</code></td><td>nom du jour de la semaine sur 3 +caractères (localisé)</td></tr> +<tr><td><code>%B</code></td><td>nom du mois en entier (localisé)</td></tr> +<tr class="odd"><td><code>%b</code></td><td>nom du mois sur 3 caractères (localisé)</td></tr> +<tr><td><code>%c</code></td><td>date et heure (localisé)</td></tr> +<tr class="odd"><td><code>%d</code></td><td>jour du mois sur 2 chiffres</td></tr> +<tr><td><code>%H</code></td><td>heure sur 2 chiffres (de 0 à 24h)</td></tr> +<tr class="odd"><td><code>%I</code></td><td>heure sur 2 chiffres (de 0 à 12h)</td></tr> +<tr><td><code>%j</code></td><td>jour de l'année sur 3 chiffres</td></tr> +<tr class="odd"><td><code>%M</code></td><td>minutes sur 2 chiffres</td></tr> +<tr><td><code>%m</code></td><td>mois sur 2 chiffres</td></tr> +<tr class="odd"><td><code>%p</code></td><td>suffixe am/pm pour l'heure de 0 à 12h +(localisé)</td></tr> +<tr><td><code>%S</code></td><td>secondes sur 2 chiffres</td></tr> +<tr class="odd"><td><code>%U</code></td><td>semaine de l'année sur 2 chiffres +(Dimanche est le premier jour de la semaine)</td></tr> +<tr><td><code>%W</code></td><td> semaine de l'année sur 2 chiffres +(Lundi est le premier jour de la semaine)</td></tr> +<tr class="odd"><td><code>%w</code></td><td>jour de la semaine sur 1 chiffre +(Dimanche est le premier jour de la semaine)</td></tr> +<tr><td><code>%X</code></td><td>heure (localisée)</td></tr> +<tr class="odd"><td><code>%x</code></td><td>date (localisée)</td></tr> +<tr><td><code>%Y</code></td><td>année sur 4 chiffres</td></tr> +<tr class="odd"><td><code>%y</code></td><td>année sur 2 chiffres</td></tr> +<tr><td><code>%Z</code></td><td>nom de la zone de temps</td></tr> +<tr class="odd"><td><code>%%</code></td><td>caractère littéral `%'</td></tr> +</table> + +</div></div> +<div class="bottomlang"> +<p><span>Langues Disponibles: </span><a href="../en/programs/rotatelogs.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/programs/rotatelogs.html" title="Français"> fr </a> | +<a href="../ko/programs/rotatelogs.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../tr/programs/rotatelogs.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> +</div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Commentaires</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div> +<script type="text/javascript"><!--//--><![CDATA[//><!-- +var comments_shortname = 'httpd'; +var comments_identifier = 'http://httpd.apache.org/docs/2.4/programs/rotatelogs.html'; +(function(w, d) { + if (w.location.hostname.toLowerCase() == "httpd.apache.org") { + d.write('<div id="comments_thread"><\/div>'); + var s = d.createElement('script'); + s.type = 'text/javascript'; + s.async = true; + s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; + (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); + } + else { + d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); + } +})(window, document); +//--><!]]></script></div><div id="footer"> +<p class="apache">Copyright 2023 The Apache Software Foundation.<br />Autorisé sous <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- +if (typeof(prettyPrint) !== 'undefined') { + prettyPrint(); +} +//--><!]]></script> +</body></html>
\ No newline at end of file diff --git a/docs/manual/programs/rotatelogs.html.ko.euc-kr b/docs/manual/programs/rotatelogs.html.ko.euc-kr new file mode 100644 index 0000000..5229595 --- /dev/null +++ b/docs/manual/programs/rotatelogs.html.ko.euc-kr @@ -0,0 +1,175 @@ +<?xml version="1.0" encoding="EUC-KR"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head> +<meta content="text/html; charset=EUC-KR" http-equiv="Content-Type" /> +<!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>rotatelogs - ¾ÆÆÄÄ¡ ·Î±×¸¦ ¼øȯÇϱâÀ§ÇØ ÆÄÀÌÇÁ·Î ¿¬°áÇÒ + ·Î±× ÇÁ·Î±×·¥ - Apache HTTP Server Version 2.4</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> +<script src="../style/scripts/prettify.min.js" type="text/javascript"> +</script> + +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">¸ðµâ</a> | <a href="../mod/directives.html">Áö½Ã¾îµé</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">¿ë¾î</a> | <a href="../sitemap.html">»çÀÌÆ®¸Ê</a></p> +<p class="apache">Apache HTTP Server Version 2.4</p> +<img alt="" src="../images/feather.png" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">Programs</a></div><div id="page-content"><div id="preamble"><h1>rotatelogs - ¾ÆÆÄÄ¡ ·Î±×¸¦ ¼øȯÇϱâÀ§ÇØ ÆÄÀÌÇÁ·Î ¿¬°áÇÒ + ·Î±× ÇÁ·Î±×·¥</h1> +<div class="toplang"> +<p><span>°¡´ÉÇÑ ¾ð¾î: </span><a href="../en/programs/rotatelogs.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/programs/rotatelogs.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ko/programs/rotatelogs.html" title="Korean"> ko </a> | +<a href="../tr/programs/rotatelogs.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> +</div> +<div class="outofdate">ÀÌ ¹®¼´Â ÃÖ½ÅÆÇ ¹ø¿ªÀÌ ¾Æ´Õ´Ï´Ù. + ÃÖ±Ù¿¡ º¯°æµÈ ³»¿ëÀº ¿µ¾î ¹®¼¸¦ Âü°íÇϼ¼¿ä.</div> + + <p><code>rotatelogs</code>´Â ¾ÆÆÄÄ¡ÀÇ ÆÄÀÌÇÁ ·Î±×ÆÄÀÏ ±â´ÉÀ» + À§ÇÑ °£´ÜÇÑ ÇÁ·Î±×·¥ÀÌ´Ù. ¿¹¸¦ µé¾î:</p> + +<div class="example"><p><code> + CustomLog "|bin/rotatelogs /var/logs/logfile 86400" common +</code></p></div> + + <p>±×·¯¸é /var/logs/logfile.nnnn ÆÄÀÏÀ» ¸¸µç´Ù. nnnnÀº + ·Î±×¸¦ ½ÃÀÛÇÑ ½Ã½ºÅ۽ð£ÀÌ´Ù (ÀÌ ½Ã°£Àº Ç×»ó ¼øȯ±â°£ÀÇ + ¹è¼öÀÌ´Ù. ±×·¡¼ cron ½ºÅ©¸³Æ®·Î ó¸®Çϱ⠽±´Ù). ¼øȯ±â°£ + (¿©±â¼´Â 24 ½Ã°£) ¸¶´Ù »õ·Î¿î ·Î±×¸¦ ½ÃÀÛÇÑ´Ù.</p> + +<div class="example"><p><code> + CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common +</code></p></div> + + <p>ÀÌ ¼³Á¤Àº ·Î±×ÆÄÀÏ Å©±â°¡ 5 ¸Þ°¡¹ÙÀÌÆ®°¡ µÉ¶§¸¶´Ù + ¼øȯÇÑ´Ù.</p> + +<div class="example"><p><code> + ErrorLog "|bin/rotatelogs /var/logs/errorlog.%Y-%m-%d-%H_%M_%S 5M" +</code></p></div> + <p>ÀÌ ¼³Á¤Àº ¿À·ù·Î±× ÆÄÀÏ Å©±â°¡ 5 ¸Þ°¡¹ÙÀÌÆ®°¡ µÉ¶§¸¶´Ù + <code>errorlog.YYYY-mm-dd-HH_MM_SS</code>¿Í °°Àº ÆÄÀÏÀ» + ¸¸µé¾î¼ ¿À·ù·Î±× ÆÄÀÏÀ» ¼øȯÇÑ´Ù.</p> + +</div> +<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis">°³¿ä</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#options">¿É¼Ç</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#portability">Æ÷Æð¡´É¼º</a></li> +</ul><h3>Âü°í</h3><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="synopsis" id="synopsis">°³¿ä</a></h2> + + <p><code><strong>rotatelogs</strong> + [ -<strong>l</strong> ] + <var>logfile</var> + [ <var>rotationtime</var> [ <var>offset</var> ]] | + [ <var>filesize</var>M ]</code></p> +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="options" id="options">¿É¼Ç</a></h2> + +<dl> + +<dt><code>-l</code></dt> +<dd>¼øȯÁÖ±â·Î GMT ´ë½Å Áö¿ª½Ã°£À» »ç¿ëÇÑ´Ù. (BST³ª DST¿Í °°ÀÌ) +GMT ½Ã°£Â÷°¡ º¯Çϴ ȯ°æ¿¡¼ <code>-l</code>À» »ç¿ëÇÏ¸é ¿¹±âÄ¡ +¾ÊÀº °á°ú°¡ ¹ß»ýÇÒ ¼ö ÀÖ´Ù!</dd> + +<dt><code><var>logfile</var></code></dt> + +<dd>·Î±×ÆÄÀÏÀÇ °æ·Î¿Í À̸§. <var>logfile</var>¿¡ '%' ¹®ÀÚ°¡ +ÀÖ´Ù¸é <code>strftime(3)</code>ÀÇ Çü½Ä¹®ÀÚ¿°ú °°ÀÌ Ã³¸®ÇÑ´Ù. +'%' ¹®ÀÚ°¡ ¾ø´Ù¸é µÚ¿¡ ÃÊ´ÜÀ§ ½Ã°£ <var>.nnnnnnnnnn</var>À» +ÀÚµ¿À¸·Î ºÙÀδÙ. µÎ Çü½Ä ¸ðµÎ ÇöÀç ±â°£ºÎÅÍ ½ÃÀ۽ð£À» °è»êÇÑ´Ù.</dd> + +<dt><code><var>rotationtime</var></code></dt> + +<dd>·Î±×ÆÄÀÏÀ» ¼øȯÇÒ ÃÊ´ÜÀ§ ½Ã°£.</dd> + +<dt><code><var>offset</var></code></dt> + +<dd>UTC¿¡¼ ºÐ´ÜÀ§ ½Ã°£Â÷ÀÌ. »ý·«Çϸé 0À¸·Î °¡Á¤ÇÏ¿© UTC¸¦ +»ç¿ëÇÑ´Ù. ¿¹¸¦ µé¾î, UTC -5 ½Ã°£´ëÀÇ Áö¿ª½Ã°£À» »ç¿ëÇÑ´Ù¸é +¾Æ±Ô¸ÕÆ®·Î <code>-300</code>À» ÁöÁ¤ÇÑ´Ù.</dd> + +<dt><code><var>filesize</var>M</code></dt> + +<dd>½Ã°£ÀÌ ¾Æ´Ñ Å©±â¸¦ ÁöÁ¤ÇÒ¶§ ¸Þ°¡¹ÙÀÌÆ®´ÜÀ§ ÃÖ´ë ÆÄÀÏÅ©±â +µÚ¿¡ <code>M</code>À» ºÙÀδÙ. rotationtime°ú offset ´ë½Å ÀÌ +ÆĶó¹ÌÅ͸¦ »ç¿ëÇÑ´Ù.</dd> +</dl> +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="portability" id="portability">Æ÷Æð¡´É¼º</a></h2> + +<p>´ÙÀ½ ·Î±×ÆÄÀÏ Çü½Ä¹®ÀÚ¿ Ç¥ÇöÀº ¸ðµç <code>strftime(3)</code> +±¸ÇöÀÌ Áö¿øÇØ¾ß ÇÑ´Ù. ¶óÀ̺귯¸® ƯÀ¯ÀÇ È®ÀåÀº +<code>strftime(3)</code> manpage¸¦ Âü°íÇ϶ó.</p> + +<table class="bordered"><tr><td><code>%A</code></td><td>(Áö¿ªÈµÈ) ¿ÏÀüÇÑ ¿äÀÏ À̸§</td></tr> +<tr class="odd"><td><code>%a</code></td><td>(Áö¿ªÈµÈ) 3-¹®ÀÚ ¿äÀÏ À̸§</td></tr> +<tr><td><code>%B</code></td><td>(Áö¿ªÈµÈ) ¿ÏÀüÇÑ ´Þ À̸§</td></tr> +<tr class="odd"><td><code>%b</code></td><td>(Áö¿ªÈµÈ) 3-¹®ÀÚ ´Þ À̸§</td></tr> +<tr><td><code>%c</code></td><td>(Áö¿ªÈµÈ) ³¯Â¥¿Í ½Ã°£</td></tr> +<tr class="odd"><td><code>%d</code></td><td>2-ÀÚ¸® ÀÏ</td></tr> +<tr><td><code>%H</code></td><td>2-ÀÚ¸® ½Ã°£ (24 ½Ã°£ ½Ã°è)</td></tr> +<tr class="odd"><td><code>%I</code></td><td>2-ÀÚ¸® ½Ã°£ (12 ½Ã°£ ½Ã°è)</td></tr> +<tr><td><code>%j</code></td><td>3-ÀÚ¸® ³¯Â¥¼ö</td></tr> +<tr class="odd"><td><code>%M</code></td><td>2-ÀÚ¸® ºÐ</td></tr> +<tr><td><code>%m</code></td><td>2-ÀÚ¸® ´Þ</td></tr> +<tr class="odd"><td><code>%p</code></td><td>(Áö¿ªÈµÈ) 12 ½Ã°£ ½Ã°èÀÇ am/pm</td></tr> +<tr><td><code>%S</code></td><td>2-ÀÚ¸® ÃÊ</td></tr> +<tr class="odd"><td><code>%U</code></td><td>2-ÀÚ¸® ÁÖÀϼö (ÁÖÀÇ Ã¹¹øÀç ³¯Àº +ÀÏ¿äÀÏ)</td></tr> +<tr><td><code>%W</code></td><td>2-ÀÚ¸® ÁÖÀϼö (ÁÖÀÇ Ã¹¹øÀç ³¯Àº +¿ù¿äÀÏ)</td></tr> +<tr class="odd"><td><code>%w</code></td><td>1-ÀÚ¸® ¿äÀϼö (ÁÖÀÇ Ã¹¹ø° ³¯Àº +ÀÏ¿äÀÏ)</td></tr> +<tr><td><code>%X</code></td><td>(Áö¿ªÈµÈ) ½Ã°£</td></tr> +<tr class="odd"><td><code>%x</code></td><td>(Áö¿ªÈµÈ) ³¯Â¥</td></tr> +<tr><td><code>%Y</code></td><td>4-ÀÚ¸® ¿¬µµ</td></tr> +<tr class="odd"><td><code>%y</code></td><td>2-ÀÚ¸® ¿¬µµ</td></tr> +<tr><td><code>%Z</code></td><td>½Ã°£´ë À̸§</td></tr> +<tr class="odd"><td><code>%%</code></td><td>¹®ÀÚ±×´ë·Î `%'</td></tr> +</table> + +</div></div> +<div class="bottomlang"> +<p><span>°¡´ÉÇÑ ¾ð¾î: </span><a href="../en/programs/rotatelogs.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/programs/rotatelogs.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ko/programs/rotatelogs.html" title="Korean"> ko </a> | +<a href="../tr/programs/rotatelogs.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> +</div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div> +<script type="text/javascript"><!--//--><![CDATA[//><!-- +var comments_shortname = 'httpd'; +var comments_identifier = 'http://httpd.apache.org/docs/2.4/programs/rotatelogs.html'; +(function(w, d) { + if (w.location.hostname.toLowerCase() == "httpd.apache.org") { + d.write('<div id="comments_thread"><\/div>'); + var s = d.createElement('script'); + s.type = 'text/javascript'; + s.async = true; + s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; + (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); + } + else { + d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); + } +})(window, document); +//--><!]]></script></div><div id="footer"> +<p class="apache">Copyright 2023 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">¸ðµâ</a> | <a href="../mod/directives.html">Áö½Ã¾îµé</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">¿ë¾î</a> | <a href="../sitemap.html">»çÀÌÆ®¸Ê</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- +if (typeof(prettyPrint) !== 'undefined') { + prettyPrint(); +} +//--><!]]></script> +</body></html>
\ No newline at end of file diff --git a/docs/manual/programs/rotatelogs.html.tr.utf8 b/docs/manual/programs/rotatelogs.html.tr.utf8 new file mode 100644 index 0000000..22d438b --- /dev/null +++ b/docs/manual/programs/rotatelogs.html.tr.utf8 @@ -0,0 +1,312 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="tr" xml:lang="tr"><head> +<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> +<!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>rotatelogs - Apache günlüklerini döndürmek için borulu günlük kayıt + programı - Apache HTTP Sunucusu Sürüm 2.4</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> +<script src="../style/scripts/prettify.min.js" type="text/javascript"> +</script> + +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modüller</a> | <a href="../mod/directives.html">Yönergeler</a> | <a href="http://wiki.apache.org/httpd/FAQ">SSS</a> | <a href="../glossary.html">Terimler</a> | <a href="../sitemap.html">Site Haritası</a></p> +<p class="apache">Apache HTTP Sunucusu Sürüm 2.4</p> +<img alt="" src="../images/feather.png" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Sunucusu</a> > <a href="http://httpd.apache.org/docs/">Belgeleme</a> > <a href="../">Sürüm 2.4</a> > <a href="./">Programlar</a></div><div id="page-content"><div id="preamble"><h1>rotatelogs - Apache günlüklerini döndürmek için borulu günlük kayıt + programı</h1> +<div class="toplang"> +<p><span>Mevcut Diller: </span><a href="../en/programs/rotatelogs.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/programs/rotatelogs.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ko/programs/rotatelogs.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../tr/programs/rotatelogs.html" title="Türkçe"> tr </a></p> +</div> + + <p><code><strong>rotatelogs</strong></code>, Apache'nin borulu günlük + dosyaları özelliği ile birlikte kullanmak için tasarlanmış basit bir + programdır. Günlük dosyasının azami boyutuna göre veya belli aralıklarla + günlük dosyalarını döndürür.</p> +</div> +<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis">Kullanım</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#options">Seçenekler</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#examples">Örnekler</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#portability">Taşınabilirlik</a></li> +</ul><h3>Ayrıca bakınız:</h3><ul class="seealso"><li><a href="#comments_section">Yorumlar</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="synopsis" id="synopsis">Kullanım</a></h2> + + <p><code><strong>rotatelogs</strong> + [ -<strong>l</strong> ] + [ -<strong>L</strong> <var>isim</var> ] + [ -<strong>p</strong> <var>program</var> ] + [ -<strong>f</strong> ] + [ -<strong>D</strong> ] + [ -<strong>t</strong> ] + [ -<strong>v</strong> ] + [ -<strong>e</strong> ] + [ -<strong>c</strong> ] + [ -<strong>n</strong> <var>dosya_sayısı</var> ] + <var>dosyaismi</var> + <var>süre</var>|<var>boyut</var>(B|K|M|G) + [ <var>saat_farkı</var> ]</code></p> +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="options" id="options">Seçenekler</a></h2> + +<dl> + <dt><code><strong>-l</strong></code></dt> + <dd>GMT yerine yerel zamanın kullanılmasını sağlar.</dd> + + <dt><code><strong>-L</strong></code> <var>bagismi</var></dt> + <dd><p>Belirtilen bağ dosyası ismine geçerli günlük dosyasından kalıcı bir bağ + oluşturulur. <code>tail -F bagismi</code> gibi bir komut kullanılarak + günlüğün sürekli izlenmesi için kullanılabilir.</p> + <p>Bağ ismi mutlak bir yol içermiyorsa, <code>rotatelogs</code>'un çalışma + dizinine, <code>rotatelogs</code> sunucu tarafından çalıştırılıyorsa + <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> dizinine görelidir.</p> + </dd> + + <dt><code><strong>-p</strong></code> <var>program</var></dt> + + <dd>Belirtildiği takdirde, <code><strong>rotatelogs</strong></code> yeni + bir günlük dosyasının her açılışında belirtilen programı çalıştırır. Yeni + açılan dosyanın ismi programa ilk argüman olarak aktarılır. Bu işlem bir + döndürme sonrası yapılırsa eski günlük dosyası ikinci argüman olarak + aktarılır. <code><strong>rotatelogs</strong></code> işlemini sürdürmek için + belirtilen programın sonlanmasını beklemez, dolayısıyla sonlanma soucunda + döndürülen hata kodunu günlüğe kaydetmez. Çalıştırılan program + <code><strong>rotatelogs</strong></code> ile aynı stdin, stdout ve stderr'i + kullanır ve ortamı da miras alır.</dd> + + <dt><code><strong>-f</strong></code></dt> + <dd>İlk günlük giridisinin okunmasını beklemeden + <code><strong>rotatelogs</strong></code> başlar başlamaz günlük + dosyasının açılmasını sağlar. Çok meşgul sitelerde, sunucu başlatılıp ilk + istek sunuluncaya kadar geçen zamanda günlük dosyasının yokluğu + özdevinimli işlemler yapan bazı günlükleme araçlarında sorunlara yol + açabilir. Bu seçenek bu gibi durumlarda yararlıdır.</dd> + + <dt><code><strong>-D</strong></code></dt> + <dd>Günlük dosyasının yerleştirileceği dizini (eğer yoksa) üst dizinleri ile + birlikte yapılandırır. Bu, <code>strftime(3)</code> işlevinin sırf dosya için + değil yol için de kullanılmasını sağlar.</dd> + + <dt><code><strong>-t</strong></code></dt> + <dd>Günlük dosyasının döndürülmek yerine tepeden kırpılmasına sebep olur. + Günlüğün <code><strong>tail</strong></code> gibi bir araç tarafından gerçek + zamanda işlendiği ve veriyi saklamanın gerekmediği durumda kullanışlıdır. + Dosya ismine bir sonek eklenmez, ancak biçem dizgesi '%' karakteri + içeriyorsa buna uyulur.</dd> + + <dt><code>-T</code></dt> + <dd>Açıldığında ilk günlük dosyası dışındaki tüm dosyaların kırpılmasına + neden olur. Bu, biçem dizgesi ayın günü gibi döngüsel bir şey içerdiğinde + kullanışlıdır. 2.4.56 ve sonrasında mevcuttur. + </dd> + + + <dt><code><strong>-v</strong></code></dt> + <dd>Standart hataya verilen çıktı daha ayrıntılı olur. Çıktı, + yapılandırma çözümlemesinin sonuçlarını ve tüm dosya açma/kapama + işlemlerini içerir.</dd> + + <dt><code><strong>-e</strong></code></dt> + <dd>Günlüğü standart çıktıya basar. Günlüğün zincirdeki ilgili araç + tarafından gerçek zamanda işlenmesi gerektiğinde kullanışlıdır.</dd> + + <dt><code><strong>-c</strong></code></dt> + <dd>Boş olsa bile her döngüde günlük dosyası oluşturur.</dd> + + <dt><code><strong>-n</strong> <var>dosya_sayısı</var></code></dt> + <dd>Zaman damgalarına bakılmaksızın bir dosya serisi açılır. Bu seçenek + döndürme ve başlatma sırasında günlük dosyalarının üzerine yazar. + Örneğin -n3 belirtilirse <var>dosyaismi</var>, <var>dosyaismi.1</var>, + <var>dosyaismi.2</var> serisi açılır ve <var>dosyaismi</var>'nin üzerine + yazılır.<br /> + Bu uygulama <var>dosyaismi</var> dosyasını ilk açtığında, dosya yalnızca + <code>-t</code> seçeneği de belirtilmişse kırpılır. Sonraki her döngü, + daima hedef dosya kırpılarak başlar. <code>-t</code> ve mevcut günlük + dosyaları olmadan boyuta dayalı döndürme için bu seçenek, ilk günlük + girişlerinin <var>dosyaismi.1</var>'e gönderilmesine ve + <var>dosyaismi.n</var> henüz kullanılmamış olsa bile + <var>dosyaismi.1</var>'deki girdilerin korunmaması gibi sezgisel + olmayan davranışlara neden olabilir.<br /> + 2.4.5 ve sonraki sürümler içindir.</dd> + + <dt><code><var>dosyaismi</var></code></dt> + <dd><p>Günlük dosyasının ismi yoluyla birlikte belirtilir. + <var>dosyaismi</var> '%' karakterleri içeriyorsa bunlar + <code>strftime(3)</code> biçem belirteçleri olarak ele alınır. Aksi + takdirde, özdevinimli olarak <var>.nnnnnnnnnn</var> uzantısı üretilir. + (<code><strong>-t</strong></code> seçeneği kullanılmadıkça) Uzantı saniye + cinsindendir ve her iki durumda da bu değer, mevcut döngü + diliminin başlangıcına göre hesaplanır. Örneğin, döndürmenin 86400 + saniyede bir yapılacağı belirtilmişse, <code>strftime(3)</code> biçeminde + oluşturulan saat, dakika ve saniye alanları, 24 saatlik sürenin + başlangıcını (geceyarısı) göstermek üzere sıfırlarla doldurulur.</p> + + <p><code>strftime(3)</code> dosyaismi biçemlemesi kullanılırken, günlük + dosyası biçeminin günlük dosyası döndürülürken her zaman farklı bir dosya + ismi üretecek yeterlilikte parçacıklı yapıya sahip olduğundan emin + olmalısınız. Aks takdirde döndürme işlemi yeni bir dosya başlatmak yerine + hep aynı dosyanın üzerine yazar. Örneğin, <var>logfile</var> için + <code>/var/log/errorlog.%Y-%m-%d</code> belirtilmişse 5 mega baytta bir + yeni bir günlük dosyasına başlanacaktır. Fakat 5 megabayta gün içinde iki + kez ulaşılırsa aynı günlük dosyası üretilir ve günlük hep aynı dosyanın + üzerine yazılır.</p> + <p>Günlük dosyası mutlak bir yol içermiyorsa, <code>rotatelogs</code>'un + çalışma dizinine, <code>rotatelogs</code> sunucu tarafından + çalıştırılıyorsa <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> + dizinine görelidir.</p> + </dd> + + <dt><code><var>süre</var></code></dt> + <dd>Günlük dosyasının yenisinin kaç saniyede bir açılacağı belirtilir. + Örneğin, bu süre 3600 saniye ise günlük dosyası her saat başında + yenilenir; 86400 saniye ise her geceyarısı yenilenir. (Bu süre zarfında + günlüğe kaydedilecek bir olay gerçekleşmemişse dosya oluşturulmaz.)</dd> + + <dt><code><var>boyut</var>(B|K|M|G)</code></dt> + <dd>Boyuta göre döndürme için azami dosya boyutu. Belirtilenin bir süre + değil de bir boyut değeri olarak ele alınması için değerin sonuna şu + karakterlerden biri eklenmelidir: <code>B</code> (Bayt), <code>K</code> + (kilobayt), <code>M</code> (megabayt), <code>G</code> (gigabayt). + + <p>Süre ve boyut birlikte belirtilmişse boyut süreden sonra + belirtilmelidir. Dosya yenilemesi, bunlardan hangisi daha önce aşılırsa o + zaman gerçekleşir.</p></dd> + + <dt><code><var>saat_farkı</var></code></dt> + <dd>Koordinatlı evrensel zamana göre "dakika" farkı. Belirtilmezse, sıfır + öntanımlıdır. Örneğin, -5 saatlik bir zaman diliminde bulunuyorsanız bu + değer <code>-300</code> olmalıdır. Çoğu durumda, bunun yerine + <code><strong>-l</strong></code> seçeneğini kullanmak gerekir.</dd> +</dl> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="examples" id="examples">Örnekler</a></h2> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs /var/log/logfile 86400" common</pre> +</div> + + <p>nnnn, günlük kaydının başladığı sistem zamanı olmak üzere + /var/log/logfile.nnnn dosyası oluşturulur. Bu zaman, daima döngü + süresinin katları olacağından bunu cron betiklerinizi eşzamanlamakta + kullanabilirsiniz. Her döngü süresinin sonunda (burada 24 saat sonra) + yeni bir günlük dosyası açılır.</p> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs -l /var/log/logfile.%Y.%m.%d 86400" common</pre> +</div> + + <p>yyyy, yıl; mm, ay; dd, ayın gününü belirtmek üzere + /var/log/logfile.yyyy.mm.dd dosyası oluşturulur. Her gün yerel zamanla + geceyarısı yeni bir günlük dosyasına geçilecektir.</p> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs /var/log/logfile 5M" common</pre> +</div> + + <p>Günlük dosyası 5 megabaytlık olunca yenisinin oluşturulmasını sağlar. + </p> + +<div class="example"><pre class="prettyprint lang-config">ErrorLog "|bin/rotatelogs /var/log/errorlog.%Y-%m-%d-%H_%M_%S 5M"</pre> +</div> + <p>Hata günlüğünün 5 megabaytta bir + <code>errorlog.YYYY-mm-dd-HH_MM_SS</code> biçemli bir isimle + oluşturulmasını sağlar.</p> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs -t /var/log/logfile 86400" common</pre> +</div> + + <p><code>/var/log/logfile</code> dosyasını oluşturur, sunucu başlatılırken ve günde + bir kere dosyanın tepesi kırpılır. Bu senaryoda ayrı bir sürecin (tail + gibi) dosyayı gerçek zamanlı işleyeceği umulur.</p> + +<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs -T /var/log/logfile.%d 86400" common</pre> +</div> + + <p>Sunucu ayın birinde başlatılırsa (veya yeniden başlatılırsa), bu, + <code>/var/log/logfile.01</code> dosyasının sonuna eklenir. Ayın ikinci + günü bir günlük girişi yazıldığında, <code>/var/log/logfile.02</code> + kırpılır ve en üste yeni girdiler eklenir. Bu örnek, özel bir bakım + gerektirmeden yaklaşık 1 aylık günlük tutar.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="portability" id="portability">Taşınabilirlik</a></h2> + + <p>Aşağıdaki günlük dosyası biçem belirteçlerinin tüm + <code>strftime(3)</code> gerçeklenimlerince desteklenmesi gerekir. + Kullandığınız kütüphaneye özgü belirteçler için sisteminizdeki + <code>strftime(3)</code> kılavuz sayfasına bakınız.</p> + +<table class="bordered"><tr><td><code>%A</code></td><td>tam gün ismi (yerelleştirilmiş)</td></tr> +<tr class="odd"><td><code>%a</code></td><td>3 harflik gün ismi +(yerelleştirilmiş)</td></tr> +<tr><td><code>%B</code></td><td>tam ay ismi (yerelleştirilmiş)</td></tr> +<tr class="odd"><td><code>%b</code></td><td>3 harflik ay ismi (yerelleştirilmiş)</td></tr> +<tr><td><code>%c</code></td><td>tarih ve saat (yerelleştirilmiş)</td></tr> +<tr class="odd"><td><code>%d</code></td><td>2 haneli ay günü numarası</td></tr> +<tr><td><code>%H</code></td><td>2 haneli saat (24 saatlik)</td></tr> +<tr class="odd"><td><code>%I</code></td><td>2 haneli saat (12 saatlik)</td></tr> +<tr><td><code>%j</code></td><td>3 hanelik yıl günü numarası</td></tr> +<tr class="odd"><td><code>%M</code></td><td>2 haneli dakika</td></tr> +<tr><td><code>%m</code></td><td>2 haneli ay</td></tr> +<tr class="odd"><td><code>%p</code></td><td>12 saatlik kip için öö/ös +(yerelleştirilmiş)</td></tr> +<tr><td><code>%S</code></td><td>2 haneli saniye</td></tr> +<tr class="odd"><td><code>%U</code></td><td>2 haneli yılın hafta numarası +(Haftanın ilk gününün Pazar olduğu varsayımıyla)</td></tr> +<tr><td><code>%W</code></td><td>2 haneli yılın hafta numarası +(Haftanın ilk gününün Pazartesi olduğu varsayımıyla)</td></tr> +<tr class="odd"><td><code>%w</code></td><td>1 hanelik haftanın gün numarası +(Haftanın ilk gününün Pazar olduğu varsayımıyla)</td></tr> +<tr><td><code>%X</code></td><td>saat (yerelleştirilmiş)</td></tr> +<tr class="odd"><td><code>%x</code></td><td>tarih (yerelleştirilmiş)</td></tr> +<tr><td><code>%Y</code></td><td>4 hanelik yıl</td></tr> +<tr class="odd"><td><code>%y</code></td><td>2 hanelik yıl</td></tr> +<tr><td><code>%Z</code></td><td>zaman dilimi ismi</td></tr> +<tr class="odd"><td><code>%%</code></td><td>`%' iminin kendisi</td></tr> +</table> + +</div></div> +<div class="bottomlang"> +<p><span>Mevcut Diller: </span><a href="../en/programs/rotatelogs.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/programs/rotatelogs.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ko/programs/rotatelogs.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../tr/programs/rotatelogs.html" title="Türkçe"> tr </a></p> +</div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Yorumlar</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div> +<script type="text/javascript"><!--//--><![CDATA[//><!-- +var comments_shortname = 'httpd'; +var comments_identifier = 'http://httpd.apache.org/docs/2.4/programs/rotatelogs.html'; +(function(w, d) { + if (w.location.hostname.toLowerCase() == "httpd.apache.org") { + d.write('<div id="comments_thread"><\/div>'); + var s = d.createElement('script'); + s.type = 'text/javascript'; + s.async = true; + s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; + (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); + } + else { + d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); + } +})(window, document); +//--><!]]></script></div><div id="footer"> +<p class="apache">Copyright 2023 The Apache Software Foundation.<br /><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> altında lisanslıdır.</p> +<p class="menu"><a href="../mod/">Modüller</a> | <a href="../mod/directives.html">Yönergeler</a> | <a href="http://wiki.apache.org/httpd/FAQ">SSS</a> | <a href="../glossary.html">Terimler</a> | <a href="../sitemap.html">Site Haritası</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- +if (typeof(prettyPrint) !== 'undefined') { + prettyPrint(); +} +//--><!]]></script> +</body></html>
\ No newline at end of file |