<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/19849" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2014-12-29T12:35:57-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/19849</id>

		<entry>
		<author><name><![CDATA[ndrp]]></name></author>
		<updated>2014-12-29T12:35:57-04:00</updated>

		<published>2014-12-29T12:35:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103417#p103417</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103417#p103417"/>
		<title type="html"><![CDATA[How to convert log file names &amp; Pisg setup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103417#p103417"><![CDATA[
I got some help. I converted filenames from mychannel.log.31May2013 to mychannel.log.20130531 by this script:<div class="codebox"><p>Code: </p><pre><code>#!/bin/bashfind . -type f -name '*.log.*[^0-9-]*' -print0 | while read -d '' -r logfile; do    mv "${logfile}"  "${logfile/.log.*/.log.`date -d ${logfile#*.log.} +%Y%m%d`}"done</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12241">ndrp</a> — Mon Dec 29, 2014 12:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ndrp]]></name></author>
		<updated>2014-12-29T10:48:37-04:00</updated>

		<published>2014-12-29T10:48:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103416#p103416</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103416#p103416"/>
		<title type="html"><![CDATA[How to convert log file names &amp; Pisg setup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103416#p103416"><![CDATA[
1)<br><br>In Eggdrop I have used the default log format:<br>set logfile-suffix ".%d%b%Y"<br><br>I have about 1800 log files per channel.<br><br>Pisg does not recognize right order of log files. If I use for example 8 last log files Pisg outputs:<br><div class="codebox"><p>Code: </p><pre><code>1839 logfile(s) found, parsing the last 8, using eggdrop format...Analyzing log /home/myuser/eggdrop/logs/mychannel.log.31May2013... 1 days, 89 lines totalAnalyzing log /home/myuser/eggdrop/logs/mychannel.log.31May2014... 2 days, 301 lines totalAnalyzing log /home/myuser/eggdrop/logs/mychannel.log.31Oct2010... 3 days, 345 lines totalAnalyzing log /home/myuser/eggdrop/logs/mychannel.log.31Oct2011... 4 days, 676 lines totalAnalyzing log /home/myuser/eggdrop/logs/mychannel.log.31Oct2012... 5 days, 964 lines totalAnalyzing log /home/myuser/eggdrop/logs/mychannel.log.31Oct2013... 6 days, 1192 lines totalAnalyzing log /home/myuser/eggdrop/logs/mychannel.log.31Oct2014... 7 days, 1746 lines totalAnalyzing log /home/myuser/eggdrop/logs/mychannel.log.yesterday... 9 days, 1888 lines totalChannel analyzed successfully in 00 hours, 00 minutes and 04 seconds on Mon Dec 29 16:20:54 2014</code></pre></div>Pisg wants the log file name format to be<br>set logfile-suffix ".%Y%m%d".<br><br>How can I convert my old logfiles to right format? My scripting skills are limited.<br><br>I have used only 8 log files for testing because reading all 1800 files is slow.<br><br><br>Here is my pisg.cfg:<div class="codebox"><p>Code: </p><pre><code>&lt;channel="#mychannel"&gt;   LogDir="/home/myuser/eggdrop/logs/"   LogPrefix = "mychannel"   NFiles="8"   Format="eggdrop"   Network="IRCNet"   OutputFile="/home/myuser/public_html/stats/index.html"   Lang = "FI"   Maintainer="myuser" &lt;/channel&gt;#&lt;set ColorScheme="orange_grey"&gt;&lt;set ShowWpl="1"&gt;&lt;set WordHistory="20"&gt;&lt;set NickTracking="1"&gt;&lt;set ShowMostActiveByHour="1"&gt;&lt;set TopicHistory="5"&gt;&lt;set NickHistory="10"&gt;&lt;set DailyActivity="31"&gt;&lt;set ShowWords="1"&gt;</code></pre></div>2)<br>I copied all png files from /usr/share/pisg/gfx to /home/myuser/public_html/stats/. Do I need to copy css files from /usr/share/pisg/layout to somewhere?<br><br>3)<br>Is "logfile smjpk #mychannel "logs/mychannel.log" " enough for Pisg or do i need to add for example o flag?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12241">ndrp</a> — Mon Dec 29, 2014 10:48 am</p><hr />
]]></content>
	</entry>
	</feed>
