<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=Log_Files</id>
		<title>Log Files - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=Log_Files"/>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Log_Files&amp;action=history"/>
		<updated>2026-04-15T01:21:09Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=Log_Files&amp;diff=987&amp;oldid=prev</id>
		<title>Carlb at 10:14, 3 December 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Log_Files&amp;diff=987&amp;oldid=prev"/>
				<updated>2012-12-03T10:14:37Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:14, 3 December 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==How Long Are Log Files Kept?==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;We will always leave at least the last 30 days of WWW logs in your &amp;quot;W3SVCxxx&amp;quot; folder. If you wish to keep log files from older than 30 days, you'll need to download the log files to your local machine. Log files older than 30 days may be deleted from the server to conserve disk space and help keep the server running at an optimal level.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Getting IP addresses From Site Log Files==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Getting IP addresses From Site Log Files==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you need to get the lines out of the logs for a certain IP you can use the PHP code below:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you need to get the lines out of the logs for a certain IP you can use the PHP code below:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Carlb</name></author>	</entry>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=Log_Files&amp;diff=789&amp;oldid=prev</id>
		<title>Carlb: Created page with &quot;==Getting IP addresses From Site Log Files== If you need to get the lines out of the logs for a certain IP you can use the PHP code below:  *NOTE: You'll need to change the $i...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Log_Files&amp;diff=789&amp;oldid=prev"/>
				<updated>2012-11-22T10:00:37Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Getting IP addresses From Site Log Files== If you need to get the lines out of the logs for a certain IP you can use the PHP code below:  *NOTE: You&amp;#039;ll need to change the $i...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Getting IP addresses From Site Log Files==&lt;br /&gt;
If you need to get the lines out of the logs for a certain IP you can use the PHP code below:&lt;br /&gt;
&lt;br /&gt;
*NOTE: You'll need to change the $ip and $file variables to match your needs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
header('Content-type: text/plain');&lt;br /&gt;
$ip = '1.2.3.4';&lt;br /&gt;
$file = 'D:\home\example.com\logs\W3SVC123\ex090430.log';&lt;br /&gt;
&lt;br /&gt;
if ($fh = fopen($file, 'r')) {&lt;br /&gt;
while ($line = fgets($fh)) {&lt;br /&gt;
if (strpos($line, $ip) !== FALSE) {&lt;br /&gt;
echo $line;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
} else {&lt;br /&gt;
die(&amp;quot;Can't open $file for reading.\n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Windows]]&lt;/div&gt;</summary>
		<author><name>Carlb</name></author>	</entry>

	</feed>