logdistiller-users Mailing List for logdistiller
Brought to you by:
hboutemy
You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Hervé B. <her...@fr...> - 2011-04-14 01:33:14
|
Everything is explained in "Developing with Eclipse and Maven" free book http://www.sonatype.com/books/m2eclipse-book/reference/ Le mercredi 13 avril 2011, liu...@si... a écrit : > how do you do ! > You mean:first setup eclipse; second setup Maven plugin in eclipse: third > setup m2celipse plugin????? |
From: <liu...@si...> - 2011-04-13 07:02:03
|
how do you do ! You mean:first setup eclipse; second setup Maven plugin in eclipse: third setup m2celipse plugin????? ----- 原始邮件 ----- 发件人:log...@li... 收件人:log...@li... 主题:Logdistiller-users Digest, Vol 2, Issue 2 日期:2011-4-13 13:02:21 Send Logdistiller-users mailing list submissions to log...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/logdistiller-users or, via email, send a message with subject or body 'help' to log...@li... You can reach the person managing the list at log...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Logdistiller-users digest..." Today's Topics: 1. Re: LogDistiller back up Chinese word (Herv? BOUTEMY) 2. ???Logdistiller-users Digest, Vol 2, Issue 1 (liu...@si...) ---------------------------------------------------------------------- Message: 1 Date: Mon, 11 Apr 2011 22:42:39 +0200 From: Herv? BOUTEMY <her...@fr...> Subject: Re: [Logdistiller-users] LogDistiller back up Chinese word To: log...@li... Message-ID: <201...@fr...> Content-Type: Text/Plain; charset="utf-8" regarding your first question, LogDistiller can read XML files written in any encoding. But it has to be valid XML files: XML prolog has to be consistent with content. In your case, you don't specify any encoding, then it is UTF-8. If you want to write your file with anothenr encoding, you have to specify it: <?xml encoding="your encoding"?> On the second question: what do you expect from "importing" a LogDistiller "Project" into Eclipse? I don't understand. LogDistiller sources, or any extension, can be imported into Eclipse: that's the way I develop it. But normal log analysis is done outside Eclipse: I don't understand what would be the meaning of creating an Eclipse project to analyse logs Regards, Herv? Le lundi 11 avril 2011, liu...@si... a ?crit : > How do you do! > When I use LogDistiller 1.1, I have two questions. Can you help me solve > them??? NO1:When I wirte rule file, > > <group id="assert"> > <description>Assert events</description> > <condition> > <match > attribute="message_text" type="contains">??</match> > </condition> > <report publisher="file"/> > <plugin type="sampling"> > <param > name="attribute_text">??</param> > <param name=".">(??)</param> </plugin> > </group> > Between "<match>" and "</match>", I use Chinse word. In conclusion there is > an ERROR: > > com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: > Invalid byte 1 of 1-byte UTF-8 sequence. at > com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown > Source) at > com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source) > at > com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown > Source) at > com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanContent(Unkno > wn Source) at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fra > gmentContentDriver.next(Unknown Source) at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknow > n Source) at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.sca > nDocument(Unknown Source) at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknow > n Source) at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknow > n Source) at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) > at > com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) > at > com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown > Source) at > net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:144) > at > net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:81) > at > net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:69) > at > net.sf.logdistiller.gui.MainPanel.selectConfigurationFile(MainPanel.java:2 > 55) at > net.sf.logdistiller.gui.MainPanel.reloadConfigurationFile(MainPanel.java:3 > 52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > net.sf.logdistiller.gui.SwingAdapter$RunnableAdapter.run(SwingAdapter.java > :125) at java.awt.event.InvocationEvent.dispatch(Unknown Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown > Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown > Source) at > java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.run(Unknown Source) > > how to make LogDistiller back up Chinese word?????? > > > NO2:LogDistiller Project can be imported to Eclipse ??? ------------------------------ Message: 2 Date: Wed, 13 Apr 2011 11:53:42 +0800 From: liu...@si... Subject: [Logdistiller-users] ???Logdistiller-users Digest, Vol 2, Issue 1 To: logdistiller-users-request<log...@li...>, logdistiller-users<log...@li...>, Message-ID: <201...@ma...> Content-Type: text/plain; charset="utf-8" Herv?: Thank you very much for your kind help. The fist question had been resoved. Regardging the second question, I mean I download logdistiller-1.1. And I want put it into eclipse to edit. But when I use "import" and locate to the logdistiller in eclipse, finally display "No projects are found to import". At last, I new java project, and I copy the files of src in logdistiller-1.1 into the src of project and I add some jars of lib in logdistiller-1.1 and some jars of ant. Now there is no mistake in the new project(I use j2se 1.6). I want to know what else to do in my new project. I also know the other folders in logdistiller-1.1 is necessary for the new project? I also know the fuction of the sample and test folders in logdistiller. Regards Liu limin from China. ----- ???? ----- ????log...@li... ????log...@li... ???Logdistiller-users Digest, Vol 2, Issue 1 ???2011-4-12 01:24:29 Send Logdistiller-users mailing list submissions to log...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/logdistiller-users or, via email, send a message with subject or body 'help' to log...@li... You can reach the person managing the list at log...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Logdistiller-users digest..." Today's Topics: 1. Re: about date.format (Herv? BOUTEMY) 2. Re: about date.format (Herv? BOUTEMY) 3. Re: about date.format (Herv? BOUTEMY) 4. LogDistiller back up Chinese word (liu...@si...) ---------------------------------------------------------------------- Message: 1 Date: Sat, 29 Aug 2009 11:48:14 +0200 From: Herv? BOUTEMY <her...@fr...> Subject: Re: [Logdistiller-users] about date.format To: ?? <ra...@gm...> Cc: log...@li... Message-ID: <200...@fr...> Content-Type: Text/Plain; charset="utf-8" Hi Dang, date.format is set the same way as date.locale: <logtype id="weblogic"> <param name="date.locale">fr_FR</param> <param name="date.format">MMM d, yyyy K:mm:ss a zz</param> </logtype> What is the error you're getting? Are you using the GUI or Ant task? Do you know the encoding of the log file and your platform encoding? If you send a zip file with sample log file and rules configuration, I'll be able to investigate further. Regards, Herv? Le vendredi 28 ao?t 2009, vous avez ?crit : > Hi, Herv? > I'm now studying at logdistiller. And I want to parse some Chinese locale > log from weblogic. The date format of chinese weblogic log often looks > like: > > *####<2009-7-24 ??07?39?50? ACT> <Info> <Log Management> <> <> <[ACTIVE] > ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> > <> <> <1248439190500> <BEA-170017> <The log file > D:\bea_products\wls923\user_projects\domains\sun_domain\servers\AdminServer >\logs\AdminServer.log will be rotated. Reopen the log file if tailing has > stopped. This can happen on some platforms like Windows.> > > > I've tried to set date.locale to cn_ZH, but I don't know how t0 set > date.format for this locale, could you please throw some point on this? > > > Thanks and regards! > > > Dang Hao > * ------------------------------ Message: 2 Date: Sat, 29 Aug 2009 16:28:39 +0200 From: Herv? BOUTEMY <her...@fr...> Subject: Re: [Logdistiller-users] about date.format To: ?? <ra...@gm...> Cc: log...@li... Message-ID: <200...@fr...> Content-Type: Text/Plain; charset="utf-8" ok, encoding is GBK (it is said in the log file as file.encoding value): I don't think there is any problem on the encoding side, everything seems consistent. For date.format value, I forgot to mention that everything is done in LogDistiller with java's SimpleDateFormat classes. Then the value must be expressed as a java SimpleDateFormat pattern: see http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html I tried to use SimpleDateFormat on my computer for zh_CN locale, but discovered my JVM doesn't have chinese strings. Do you know if your JVM has these chinese strings? BTW, we can try: 2009-7-24 ??07?39?50? ACT SimpleDateFormat pattern should be: - 2009-7-24 => yyyy-M-d - ?? => I don't know, I don't read chinese I didn't find this value in my jdk... Is it a fixed value, that never changes? - 07 => HH - ? => ? - 39 => mm - ? => ? - 50 => ss - ? => ? - ACT => z The full value is "yyyy-M-d ?HH?mm?ss? z". Now we must know what are values for the "?". If they are fixed values, then the pattern is: "yyyy-M-d ??HH?mm?ss? z" Can you try and tell me? Don't forget that LogDistiller configuration file is XML, then the encoding must be either UTF-8, or defined in <?xml version="1.0" encoding="xxx"?>. Regards, Herv? Le samedi 29 ao?t 2009, vous avez ?crit : > Hi, Herv? > Thanks for your kind help! > > 1. The attached file is a sample log. > > 2. I'm using GUI. > > 3. I think encoding of my log file is GBK or GB2312. > > 4. I just do not know what the value of date.format should be while the > date.locale's value is cn_ZH. A piece of log looks like: > ####*<2009-7-24 ??07?39?50? ACT>* <Info> <Diagnostics> <hdang-cn> > <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: > 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> > <1248439190875> <BEA-320001> <The ServerDebug service initialized > successfully.> > > > Regards, > > Dang Hao > > > > > > > 2009/8/29 Herv? BOUTEMY <her...@fr...> > > > Hi Dang, > > > > date.format is set the same way as date.locale: > > <logtype id="weblogic"> > > <param name="date.locale">fr_FR</param> > > <param name="date.format">MMM d, yyyy K:mm:ss a zz</param> > > </logtype> > > > > What is the error you're getting? Are you using the GUI or Ant task? > > Do you know the encoding of the log file and your platform encoding? > > > > If you send a zip file with sample log file and rules configuration, I'll > > be able > > to investigate further. > > > > Regards, > > > > Herv? > > > > Le vendredi 28 ao?t 2009, vous avez ?crit : > > > Hi, Herv? > > > I'm now studying at logdistiller. And I want to parse some Chinese > > > locale log from weblogic. The date format of chinese weblogic log often > > > looks like: > > > > > > *####<2009-7-24 ??07?39?50? ACT> <Info> <Log Management> <> <> > > > <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default > > > (self-tuning)'> <> <> <> <1248439190500> <BEA-170017> <The log file > > > > D:\bea_products\wls923\user_projects\domains\sun_domain\servers\AdminServ > >er > > > > >\logs\AdminServer.log will be rotated. Reopen the log file if tailing > > > has stopped. This can happen on some platforms like Windows.> > > > > > > > > > I've tried to set date.locale to cn_ZH, but I don't know how t0 set > > > date.format for this locale, could you please throw some point on this? > > > > > > > > > Thanks and regards! > > > > > > > > > Dang Hao > > > * ------------------------------ Message: 3 Date: Sun, 30 Aug 2009 09:08:01 +0200 From: Herv? BOUTEMY <her...@fr...> Subject: Re: [Logdistiller-users] about date.format To: ?? <ra...@gm...> Cc: log...@li... Message-ID: <200...@fr...> Content-Type: Text/Plain; charset="utf-8" Hi Dang, Glad to know it works. I hope LogDistiller will be useful for you. Regards, Herv? Le dimanche 30 ao?t 2009, vous avez ?crit : > Hi,Herve > I updated my rule.xml as below and it finally worked: > > > <?xml version='1.0'* encoding="GBK"*?> > <!DOCTYPE logdistiller SYSTEM " > http://logdistiller.sourceforge.net/dtd/logdistiller-1_3.dtd"> > ... > <description>rules description</description> > <logtype id="weblogic"> > *<param name="date.locale">cn_ZH</param>** * > * ** **<param name="date.format">yyyy-M-d ??HH?mm?ss? z</param>** * > > As you guess, ??/?/?/? are Chinese words separately mean > a.m./hour/minitu/second. > > > Thanks for your great help and great effort on LogDistiller ! > > Dang > > > > 2009/8/29 Herv? BOUTEMY <her...@fr...> > > > ok, encoding is GBK (it is said in the log file as file.encoding value): > > I don't > > think there is any problem on the encoding side, everything seems > > consistent. > > > > For date.format value, I forgot to mention that everything is done in > > LogDistiller with java's SimpleDateFormat classes. Then the value must be > > expressed as a java SimpleDateFormat pattern: see > > http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html > > > > I tried to use SimpleDateFormat on my computer for zh_CN locale, but > > discovered my JVM doesn't have chinese strings. Do you know if your JVM > > has these chinese strings? > > > > BTW, we can try: 2009-7-24 ??07?39?50? ACT SimpleDateFormat pattern > > should be: > > - 2009-7-24 => yyyy-M-d > > - ?? => I don't know, I don't read chinese I didn't find this value in my > > jdk... Is it a fixed value, that never changes? > > - 07 => HH > > - ? => ? > > - 39 => mm > > - ? => ? > > - 50 => ss > > - ? => ? > > - ACT => z > > > > The full value is "yyyy-M-d ?HH?mm?ss? z". > > Now we must know what are values for the "?". > > > > If they are fixed values, then the pattern is: > > "yyyy-M-d ??HH?mm?ss? z" > > > > Can you try and tell me? > > Don't forget that LogDistiller configuration file is XML, then the > > encoding must > > be either UTF-8, or defined in <?xml version="1.0" encoding="xxx"?>. > > > > Regards, > > > > Herv? > > > > Le samedi 29 ao?t 2009, vous avez ?crit : > > > Hi, Herv? > > > Thanks for your kind help! > > > > > > 1. The attached file is a sample log. > > > > > > 2. I'm using GUI. > > > > > > 3. I think encoding of my log file is GBK or GB2312. > > > > > > 4. I just do not know what the value of date.format should be while the > > > date.locale's value is cn_ZH. A piece of log looks like: > > > ####*<2009-7-24 ??07?39?50? ACT>* <Info> <Diagnostics> <hdang-cn> > > > <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: > > > 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> > > > <1248439190875> <BEA-320001> <The ServerDebug service initialized > > > successfully.> > > > > > > > > > Regards, > > > > > > Dang Hao > > > > > > > > > > > > > > > > > > > > > 2009/8/29 Herv? BOUTEMY <her...@fr...> > > > > > > > Hi Dang, > > > > > > > > date.format is set the same way as date.locale: > > > > <logtype id="weblogic"> > > > > <param name="date.locale">fr_FR</param> > > > > <param name="date.format">MMM d, yyyy K:mm:ss a zz</param> > > > > </logtype> > > > > > > > > What is the error you're getting? Are you using the GUI or Ant task? > > > > Do you know the encoding of the log file and your platform encoding? > > > > > > > > If you send a zip file with sample log file and rules configuration, > > > > I'll > > > > > > be able > > > > to investigate further. > > > > > > > > Regards, > > > > > > > > Herv? > > > > > > > > Le vendredi 28 ao?t 2009, vous avez ?crit : > > > > > Hi, Herv? > > > > > I'm now studying at logdistiller. And I want to parse some Chinese > > > > > locale log from weblogic. The date format of chinese weblogic log > > > > often > > > > > > > looks like: > > > > > > > > > > *####<2009-7-24 ??07?39?50? ACT> <Info> <Log Management> <> <> > > > > > <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default > > > > > (self-tuning)'> <> <> <> <1248439190500> <BEA-170017> <The log file > > > > D:\bea_products\wls923\user_projects\domains\sun_domain\servers\AdminServ > > > > > >er > > > > > > > > >\logs\AdminServer.log will be rotated. Reopen the log file if > > > > > tailing has stopped. This can happen on some platforms like > > > > > Windows.> > > > > > > > > > > > > > > > I've tried to set date.locale to cn_ZH, but I don't know how t0 set > > > > > date.format for this locale, could you please throw some point on > > > > this? > > > > > > > Thanks and regards! > > > > > > > > > > > > > > > Dang Hao > > > > > * ------------------------------ Message: 4 Date: Mon, 11 Apr 2011 14:33:39 +0800 From: liu...@si... Subject: [Logdistiller-users] LogDistiller back up Chinese word To: logdistiller-users-request<log...@li...>, log...@li..., Message-ID: <201...@ma...> Content-Type: text/plain; charset="gbk" How do you do! When I use LogDistiller 1.1, I have two questions. Can you help me solve them??? NO1:When I wirte rule file, <group id="assert"> <description>Assert events</description> <condition> <match attribute="message_text" type="contains">??</match> </condition> <report publisher="file"/> <plugin type="sampling"> <param name="attribute_text">??</param> <param name=".">(??)</param> </plugin> </group> Between "<match>" and "</match>", I use Chinse word. In conclusion there is an ERROR: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanContent(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) at net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:144) at net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:81) at net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:69) at net.sf.logdistiller.gui.MainPanel.selectConfigurationFile(MainPanel.java:255) at net.sf.logdistiller.gui.MainPanel.reloadConfigurationFile(MainPanel.java:352) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.sf.logdistiller.gui.SwingAdapter$RunnableAdapter.run(SwingAdapter.java:125) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) how to make LogDistiller back up Chinese word?????? NO2:LogDistiller Project can be imported to Eclipse ??? -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev ------------------------------ _______________________________________________ Logdistiller-users mailing list Log...@li... https://lists.sourceforge.net/lists/listinfo/logdistiller-users End of Logdistiller-users Digest, Vol 2, Issue 1 ************************************************ -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------------ Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ------------------------------ _______________________________________________ Logdistiller-users mailing list Log...@li... https://lists.sourceforge.net/lists/listinfo/logdistiller-users End of Logdistiller-users Digest, Vol 2, Issue 2 ************************************************ |
From: Hervé B. <her...@fr...> - 2011-04-13 05:08:28
|
LogDistiller is developed using Maven: if you install m2eclipse, you'll be able to import LogDistiller project itself, or import a project extension to provide a new log parser, for example. If you d'ont want to install m2eclipse plugin, you'll have to read pom.xml and define by hand dependencies and resource directories defined in it Regards, Hervé Le mercredi 13 avril 2011, liu...@si... a écrit : > Hervé: > Thank you very much for > your kind help. The fist question had been resoved. > Regardging the second question, I mean I download logdistiller-1.1. And I > want put it into eclipse to edit. But when I use "import" and locate to > the logdistiller in eclipse, finally display "No projects are found to > import". At last, I new java project, and I copy the files of src in > logdistiller-1.1 into the src of project and I add some jars of lib in > logdistiller-1.1 and some jars of ant. Now there is no mistake in the > new project(I use j2se 1.6). I want to know what else to do in my new > project. > I also know the other folders in logdistiller-1.1 is necessary for the new > project? I also know the fuction of the sample and test folders in > logdistiller. > Regards > Liu limin from China. > > |
From: <liu...@si...> - 2011-04-13 04:11:59
|
Hervé: Thank you very much for your kind help. The fist question had been resoved. Regardging the second question, I mean I download logdistiller-1.1. And I want put it into eclipse to edit. But when I use "import" and locate to the logdistiller in eclipse, finally display "No projects are found to import". At last, I new java project, and I copy the files of src in logdistiller-1.1 into the src of project and I add some jars of lib in logdistiller-1.1 and some jars of ant. Now there is no mistake in the new project(I use j2se 1.6). I want to know what else to do in my new project. I also know the other folders in logdistiller-1.1 is necessary for the new project? I also know the fuction of the sample and test folders in logdistiller. Regards Liu limin from China. ----- 原始邮件 ----- 发件人:log...@li... 收件人:log...@li... 主题:Logdistiller-users Digest, Vol 2, Issue 1 日期:2011-4-12 01:24:29 Send Logdistiller-users mailing list submissions to log...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/logdistiller-users or, via email, send a message with subject or body 'help' to log...@li... You can reach the person managing the list at log...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Logdistiller-users digest..." Today's Topics: 1. Re: about date.format (Herv? BOUTEMY) 2. Re: about date.format (Herv? BOUTEMY) 3. Re: about date.format (Herv? BOUTEMY) 4. LogDistiller back up Chinese word (liu...@si...) ---------------------------------------------------------------------- Message: 1 Date: Sat, 29 Aug 2009 11:48:14 +0200 From: Herv? BOUTEMY <her...@fr...> Subject: Re: [Logdistiller-users] about date.format To: ?? <ra...@gm...> Cc: log...@li... Message-ID: <200...@fr...> Content-Type: Text/Plain; charset="utf-8" Hi Dang, date.format is set the same way as date.locale: <logtype id="weblogic"> <param name="date.locale">fr_FR</param> <param name="date.format">MMM d, yyyy K:mm:ss a zz</param> </logtype> What is the error you're getting? Are you using the GUI or Ant task? Do you know the encoding of the log file and your platform encoding? If you send a zip file with sample log file and rules configuration, I'll be able to investigate further. Regards, Herv? Le vendredi 28 ao?t 2009, vous avez ?crit : > Hi, Herv? > I'm now studying at logdistiller. And I want to parse some Chinese locale > log from weblogic. The date format of chinese weblogic log often looks > like: > > *####<2009-7-24 ??07?39?50? ACT> <Info> <Log Management> <> <> <[ACTIVE] > ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> > <> <> <1248439190500> <BEA-170017> <The log file > D:\bea_products\wls923\user_projects\domains\sun_domain\servers\AdminServer >\logs\AdminServer.log will be rotated. Reopen the log file if tailing has > stopped. This can happen on some platforms like Windows.> > > > I've tried to set date.locale to cn_ZH, but I don't know how t0 set > date.format for this locale, could you please throw some point on this? > > > Thanks and regards! > > > Dang Hao > * ------------------------------ Message: 2 Date: Sat, 29 Aug 2009 16:28:39 +0200 From: Herv? BOUTEMY <her...@fr...> Subject: Re: [Logdistiller-users] about date.format To: ?? <ra...@gm...> Cc: log...@li... Message-ID: <200...@fr...> Content-Type: Text/Plain; charset="utf-8" ok, encoding is GBK (it is said in the log file as file.encoding value): I don't think there is any problem on the encoding side, everything seems consistent. For date.format value, I forgot to mention that everything is done in LogDistiller with java's SimpleDateFormat classes. Then the value must be expressed as a java SimpleDateFormat pattern: see http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html I tried to use SimpleDateFormat on my computer for zh_CN locale, but discovered my JVM doesn't have chinese strings. Do you know if your JVM has these chinese strings? BTW, we can try: 2009-7-24 ??07?39?50? ACT SimpleDateFormat pattern should be: - 2009-7-24 => yyyy-M-d - ?? => I don't know, I don't read chinese I didn't find this value in my jdk... Is it a fixed value, that never changes? - 07 => HH - ? => ? - 39 => mm - ? => ? - 50 => ss - ? => ? - ACT => z The full value is "yyyy-M-d ?HH?mm?ss? z". Now we must know what are values for the "?". If they are fixed values, then the pattern is: "yyyy-M-d ??HH?mm?ss? z" Can you try and tell me? Don't forget that LogDistiller configuration file is XML, then the encoding must be either UTF-8, or defined in <?xml version="1.0" encoding="xxx"?>. Regards, Herv? Le samedi 29 ao?t 2009, vous avez ?crit : > Hi, Herv? > Thanks for your kind help! > > 1. The attached file is a sample log. > > 2. I'm using GUI. > > 3. I think encoding of my log file is GBK or GB2312. > > 4. I just do not know what the value of date.format should be while the > date.locale's value is cn_ZH. A piece of log looks like: > ####*<2009-7-24 ??07?39?50? ACT>* <Info> <Diagnostics> <hdang-cn> > <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: > 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> > <1248439190875> <BEA-320001> <The ServerDebug service initialized > successfully.> > > > Regards, > > Dang Hao > > > > > > > 2009/8/29 Herv? BOUTEMY <her...@fr...> > > > Hi Dang, > > > > date.format is set the same way as date.locale: > > <logtype id="weblogic"> > > <param name="date.locale">fr_FR</param> > > <param name="date.format">MMM d, yyyy K:mm:ss a zz</param> > > </logtype> > > > > What is the error you're getting? Are you using the GUI or Ant task? > > Do you know the encoding of the log file and your platform encoding? > > > > If you send a zip file with sample log file and rules configuration, I'll > > be able > > to investigate further. > > > > Regards, > > > > Herv? > > > > Le vendredi 28 ao?t 2009, vous avez ?crit : > > > Hi, Herv? > > > I'm now studying at logdistiller. And I want to parse some Chinese > > > locale log from weblogic. The date format of chinese weblogic log often > > > looks like: > > > > > > *####<2009-7-24 ??07?39?50? ACT> <Info> <Log Management> <> <> > > > <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default > > > (self-tuning)'> <> <> <> <1248439190500> <BEA-170017> <The log file > > > > D:\bea_products\wls923\user_projects\domains\sun_domain\servers\AdminServ > >er > > > > >\logs\AdminServer.log will be rotated. Reopen the log file if tailing > > > has stopped. This can happen on some platforms like Windows.> > > > > > > > > > I've tried to set date.locale to cn_ZH, but I don't know how t0 set > > > date.format for this locale, could you please throw some point on this? > > > > > > > > > Thanks and regards! > > > > > > > > > Dang Hao > > > * ------------------------------ Message: 3 Date: Sun, 30 Aug 2009 09:08:01 +0200 From: Herv? BOUTEMY <her...@fr...> Subject: Re: [Logdistiller-users] about date.format To: ?? <ra...@gm...> Cc: log...@li... Message-ID: <200...@fr...> Content-Type: Text/Plain; charset="utf-8" Hi Dang, Glad to know it works. I hope LogDistiller will be useful for you. Regards, Herv? Le dimanche 30 ao?t 2009, vous avez ?crit : > Hi,Herve > I updated my rule.xml as below and it finally worked: > > > <?xml version='1.0'* encoding="GBK"*?> > <!DOCTYPE logdistiller SYSTEM " > http://logdistiller.sourceforge.net/dtd/logdistiller-1_3.dtd"> > ... > <description>rules description</description> > <logtype id="weblogic"> > *<param name="date.locale">cn_ZH</param>** * > * ** **<param name="date.format">yyyy-M-d ??HH?mm?ss? z</param>** * > > As you guess, ??/?/?/? are Chinese words separately mean > a.m./hour/minitu/second. > > > Thanks for your great help and great effort on LogDistiller ! > > Dang > > > > 2009/8/29 Herv? BOUTEMY <her...@fr...> > > > ok, encoding is GBK (it is said in the log file as file.encoding value): > > I don't > > think there is any problem on the encoding side, everything seems > > consistent. > > > > For date.format value, I forgot to mention that everything is done in > > LogDistiller with java's SimpleDateFormat classes. Then the value must be > > expressed as a java SimpleDateFormat pattern: see > > http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html > > > > I tried to use SimpleDateFormat on my computer for zh_CN locale, but > > discovered my JVM doesn't have chinese strings. Do you know if your JVM > > has these chinese strings? > > > > BTW, we can try: 2009-7-24 ??07?39?50? ACT SimpleDateFormat pattern > > should be: > > - 2009-7-24 => yyyy-M-d > > - ?? => I don't know, I don't read chinese I didn't find this value in my > > jdk... Is it a fixed value, that never changes? > > - 07 => HH > > - ? => ? > > - 39 => mm > > - ? => ? > > - 50 => ss > > - ? => ? > > - ACT => z > > > > The full value is "yyyy-M-d ?HH?mm?ss? z". > > Now we must know what are values for the "?". > > > > If they are fixed values, then the pattern is: > > "yyyy-M-d ??HH?mm?ss? z" > > > > Can you try and tell me? > > Don't forget that LogDistiller configuration file is XML, then the > > encoding must > > be either UTF-8, or defined in <?xml version="1.0" encoding="xxx"?>. > > > > Regards, > > > > Herv? > > > > Le samedi 29 ao?t 2009, vous avez ?crit : > > > Hi, Herv? > > > Thanks for your kind help! > > > > > > 1. The attached file is a sample log. > > > > > > 2. I'm using GUI. > > > > > > 3. I think encoding of my log file is GBK or GB2312. > > > > > > 4. I just do not know what the value of date.format should be while the > > > date.locale's value is cn_ZH. A piece of log looks like: > > > ####*<2009-7-24 ??07?39?50? ACT>* <Info> <Diagnostics> <hdang-cn> > > > <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: > > > 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> > > > <1248439190875> <BEA-320001> <The ServerDebug service initialized > > > successfully.> > > > > > > > > > Regards, > > > > > > Dang Hao > > > > > > > > > > > > > > > > > > > > > 2009/8/29 Herv? BOUTEMY <her...@fr...> > > > > > > > Hi Dang, > > > > > > > > date.format is set the same way as date.locale: > > > > <logtype id="weblogic"> > > > > <param name="date.locale">fr_FR</param> > > > > <param name="date.format">MMM d, yyyy K:mm:ss a zz</param> > > > > </logtype> > > > > > > > > What is the error you're getting? Are you using the GUI or Ant task? > > > > Do you know the encoding of the log file and your platform encoding? > > > > > > > > If you send a zip file with sample log file and rules configuration, > > > > I'll > > > > > > be able > > > > to investigate further. > > > > > > > > Regards, > > > > > > > > Herv? > > > > > > > > Le vendredi 28 ao?t 2009, vous avez ?crit : > > > > > Hi, Herv? > > > > > I'm now studying at logdistiller. And I want to parse some Chinese > > > > > locale log from weblogic. The date format of chinese weblogic log > > > > often > > > > > > > looks like: > > > > > > > > > > *####<2009-7-24 ??07?39?50? ACT> <Info> <Log Management> <> <> > > > > > <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default > > > > > (self-tuning)'> <> <> <> <1248439190500> <BEA-170017> <The log file > > > > D:\bea_products\wls923\user_projects\domains\sun_domain\servers\AdminServ > > > > > >er > > > > > > > > >\logs\AdminServer.log will be rotated. Reopen the log file if > > > > > tailing has stopped. This can happen on some platforms like > > > > > Windows.> > > > > > > > > > > > > > > > I've tried to set date.locale to cn_ZH, but I don't know how t0 set > > > > > date.format for this locale, could you please throw some point on > > > > this? > > > > > > > Thanks and regards! > > > > > > > > > > > > > > > Dang Hao > > > > > * ------------------------------ Message: 4 Date: Mon, 11 Apr 2011 14:33:39 +0800 From: liu...@si... Subject: [Logdistiller-users] LogDistiller back up Chinese word To: logdistiller-users-request<log...@li...>, log...@li..., Message-ID: <201...@ma...> Content-Type: text/plain; charset="gbk" How do you do! When I use LogDistiller 1.1, I have two questions. Can you help me solve them??? NO1:When I wirte rule file, <group id="assert"> <description>Assert events</description> <condition> <match attribute="message_text" type="contains">??</match> </condition> <report publisher="file"/> <plugin type="sampling"> <param name="attribute_text">??</param> <param name=".">(??)</param> </plugin> </group> Between "<match>" and "</match>", I use Chinse word. In conclusion there is an ERROR: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanContent(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) at net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:144) at net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:81) at net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:69) at net.sf.logdistiller.gui.MainPanel.selectConfigurationFile(MainPanel.java:255) at net.sf.logdistiller.gui.MainPanel.reloadConfigurationFile(MainPanel.java:352) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.sf.logdistiller.gui.SwingAdapter$RunnableAdapter.run(SwingAdapter.java:125) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) how to make LogDistiller back up Chinese word?????? NO2:LogDistiller Project can be imported to Eclipse ??? -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev ------------------------------ _______________________________________________ Logdistiller-users mailing list Log...@li... https://lists.sourceforge.net/lists/listinfo/logdistiller-users End of Logdistiller-users Digest, Vol 2, Issue 1 ************************************************ |
From: Hervé B. <her...@fr...> - 2011-04-11 20:42:55
|
regarding your first question, LogDistiller can read XML files written in any encoding. But it has to be valid XML files: XML prolog has to be consistent with content. In your case, you don't specify any encoding, then it is UTF-8. If you want to write your file with anothenr encoding, you have to specify it: <?xml encoding="your encoding"?> On the second question: what do you expect from "importing" a LogDistiller "Project" into Eclipse? I don't understand. LogDistiller sources, or any extension, can be imported into Eclipse: that's the way I develop it. But normal log analysis is done outside Eclipse: I don't understand what would be the meaning of creating an Eclipse project to analyse logs Regards, Hervé Le lundi 11 avril 2011, liu...@si... a écrit : > How do you do! > When I use LogDistiller 1.1, I have two questions. Can you help me solve > them??? NO1:When I wirte rule file, > > <group id="assert"> > <description>Assert events</description> > <condition> > <match > attribute="message_text" type="contains">警告</match> > </condition> > <report publisher="file"/> > <plugin type="sampling"> > <param > name="attribute_text">警告</param> > <param name=".">(警告)</param> </plugin> > </group> > Between "<match>" and "</match>", I use Chinse word. In conclusion there is > an ERROR: > > com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: > Invalid byte 1 of 1-byte UTF-8 sequence. at > com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown > Source) at > com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source) > at > com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown > Source) at > com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanContent(Unkno > wn Source) at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fra > gmentContentDriver.next(Unknown Source) at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknow > n Source) at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.sca > nDocument(Unknown Source) at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknow > n Source) at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknow > n Source) at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) > at > com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) > at > com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown > Source) at > net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:144) > at > net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:81) > at > net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:69) > at > net.sf.logdistiller.gui.MainPanel.selectConfigurationFile(MainPanel.java:2 > 55) at > net.sf.logdistiller.gui.MainPanel.reloadConfigurationFile(MainPanel.java:3 > 52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > net.sf.logdistiller.gui.SwingAdapter$RunnableAdapter.run(SwingAdapter.java > :125) at java.awt.event.InvocationEvent.dispatch(Unknown Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown > Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown > Source) at > java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.run(Unknown Source) > > how to make LogDistiller back up Chinese word?????? > > > NO2:LogDistiller Project can be imported to Eclipse ??? |
From: <liu...@si...> - 2011-04-11 06:32:09
|
How do you do! When I use LogDistiller 1.1, I have two questions. Can you help me solve them??? NO1:When I wirte rule file, <group id="assert"> <description>Assert events</description> <condition> <match attribute="message_text" type="contains">警告</match> </condition> <report publisher="file"/> <plugin type="sampling"> <param name="attribute_text">警告</param> <param name=".">(警告)</param> </plugin> </group> Between "<match>" and "</match>", I use Chinse word. In conclusion there is an ERROR: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanContent(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) at net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:144) at net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:81) at net.sf.logdistiller.xml.DOMConfigurator.read(DOMConfigurator.java:69) at net.sf.logdistiller.gui.MainPanel.selectConfigurationFile(MainPanel.java:255) at net.sf.logdistiller.gui.MainPanel.reloadConfigurationFile(MainPanel.java:352) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.sf.logdistiller.gui.SwingAdapter$RunnableAdapter.run(SwingAdapter.java:125) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) how to make LogDistiller back up Chinese word?????? NO2:LogDistiller Project can be imported to Eclipse ??? |
From: Hervé B. <her...@fr...> - 2009-08-30 07:08:24
|
Hi Dang, Glad to know it works. I hope LogDistiller will be useful for you. Regards, Hervé Le dimanche 30 août 2009, vous avez écrit : > Hi,Herve > I updated my rule.xml as below and it finally worked: > > > <?xml version='1.0'* encoding="GBK"*?> > <!DOCTYPE logdistiller SYSTEM " > http://logdistiller.sourceforge.net/dtd/logdistiller-1_3.dtd"> > ... > <description>rules description</description> > <logtype id="weblogic"> > *<param name="date.locale">cn_ZH</param>** * > * ** **<param name="date.format">yyyy-M-d 上午HH时mm分ss秒 z</param>** * > > As you guess, 上午/时/分/秒 are Chinese words separately mean > a.m./hour/minitu/second. > > > Thanks for your great help and great effort on LogDistiller ! > > Dang > > > > 2009/8/29 Hervé BOUTEMY <her...@fr...> > > > ok, encoding is GBK (it is said in the log file as file.encoding value): > > I don't > > think there is any problem on the encoding side, everything seems > > consistent. > > > > For date.format value, I forgot to mention that everything is done in > > LogDistiller with java's SimpleDateFormat classes. Then the value must be > > expressed as a java SimpleDateFormat pattern: see > > http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html > > > > I tried to use SimpleDateFormat on my computer for zh_CN locale, but > > discovered my JVM doesn't have chinese strings. Do you know if your JVM > > has these chinese strings? > > > > BTW, we can try: 2009-7-24 上午07时39分50秒 ACT SimpleDateFormat pattern > > should be: > > - 2009-7-24 => yyyy-M-d > > - 上午 => I don't know, I don't read chinese I didn't find this value in my > > jdk... Is it a fixed value, that never changes? > > - 07 => HH > > - 时 => ? > > - 39 => mm > > - 分 => ? > > - 50 => ss > > - 秒 => ? > > - ACT => z > > > > The full value is "yyyy-M-d ?HH?mm?ss? z". > > Now we must know what are values for the "?". > > > > If they are fixed values, then the pattern is: > > "yyyy-M-d 上午HH时mm分ss秒 z" > > > > Can you try and tell me? > > Don't forget that LogDistiller configuration file is XML, then the > > encoding must > > be either UTF-8, or defined in <?xml version="1.0" encoding="xxx"?>. > > > > Regards, > > > > Hervé > > > > Le samedi 29 août 2009, vous avez écrit : > > > Hi, Hervé > > > Thanks for your kind help! > > > > > > 1. The attached file is a sample log. > > > > > > 2. I'm using GUI. > > > > > > 3. I think encoding of my log file is GBK or GB2312. > > > > > > 4. I just do not know what the value of date.format should be while the > > > date.locale's value is cn_ZH. A piece of log looks like: > > > ####*<2009-7-24 上午07时39分50秒 ACT>* <Info> <Diagnostics> <hdang-cn> > > > <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: > > > 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> > > > <1248439190875> <BEA-320001> <The ServerDebug service initialized > > > successfully.> > > > > > > > > > Regards, > > > > > > Dang Hao > > > > > > > > > > > > > > > > > > > > > 2009/8/29 Hervé BOUTEMY <her...@fr...> > > > > > > > Hi Dang, > > > > > > > > date.format is set the same way as date.locale: > > > > <logtype id="weblogic"> > > > > <param name="date.locale">fr_FR</param> > > > > <param name="date.format">MMM d, yyyy K:mm:ss a zz</param> > > > > </logtype> > > > > > > > > What is the error you're getting? Are you using the GUI or Ant task? > > > > Do you know the encoding of the log file and your platform encoding? > > > > > > > > If you send a zip file with sample log file and rules configuration, > > > > I'll > > > > > > be able > > > > to investigate further. > > > > > > > > Regards, > > > > > > > > Hervé > > > > > > > > Le vendredi 28 août 2009, vous avez écrit : > > > > > Hi, Hervé > > > > > I'm now studying at logdistiller. And I want to parse some Chinese > > > > > locale log from weblogic. The date format of chinese weblogic log > > > > often > > > > > > > looks like: > > > > > > > > > > *####<2009-7-24 上午07时39分50秒 ACT> <Info> <Log Management> <> <> > > > > > <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default > > > > > (self-tuning)'> <> <> <> <1248439190500> <BEA-170017> <The log file > > > > D:\bea_products\wls923\user_projects\domains\sun_domain\servers\AdminServ > > > > > >er > > > > > > > > >\logs\AdminServer.log will be rotated. Reopen the log file if > > > > > tailing has stopped. This can happen on some platforms like > > > > > Windows.> > > > > > > > > > > > > > > > I've tried to set date.locale to cn_ZH, but I don't know how t0 set > > > > > date.format for this locale, could you please throw some point on > > > > this? > > > > > > > Thanks and regards! > > > > > > > > > > > > > > > Dang Hao > > > > > * |
From: Hervé B. <her...@fr...> - 2009-08-29 14:29:01
|
ok, encoding is GBK (it is said in the log file as file.encoding value): I don't think there is any problem on the encoding side, everything seems consistent. For date.format value, I forgot to mention that everything is done in LogDistiller with java's SimpleDateFormat classes. Then the value must be expressed as a java SimpleDateFormat pattern: see http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html I tried to use SimpleDateFormat on my computer for zh_CN locale, but discovered my JVM doesn't have chinese strings. Do you know if your JVM has these chinese strings? BTW, we can try: 2009-7-24 上午07时39分50秒 ACT SimpleDateFormat pattern should be: - 2009-7-24 => yyyy-M-d - 上午 => I don't know, I don't read chinese I didn't find this value in my jdk... Is it a fixed value, that never changes? - 07 => HH - 时 => ? - 39 => mm - 分 => ? - 50 => ss - 秒 => ? - ACT => z The full value is "yyyy-M-d ?HH?mm?ss? z". Now we must know what are values for the "?". If they are fixed values, then the pattern is: "yyyy-M-d 上午HH时mm分ss秒 z" Can you try and tell me? Don't forget that LogDistiller configuration file is XML, then the encoding must be either UTF-8, or defined in <?xml version="1.0" encoding="xxx"?>. Regards, Hervé Le samedi 29 août 2009, vous avez écrit : > Hi, Hervé > Thanks for your kind help! > > 1. The attached file is a sample log. > > 2. I'm using GUI. > > 3. I think encoding of my log file is GBK or GB2312. > > 4. I just do not know what the value of date.format should be while the > date.locale's value is cn_ZH. A piece of log looks like: > ####*<2009-7-24 上午07时39分50秒 ACT>* <Info> <Diagnostics> <hdang-cn> > <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: > 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> > <1248439190875> <BEA-320001> <The ServerDebug service initialized > successfully.> > > > Regards, > > Dang Hao > > > > > > > 2009/8/29 Hervé BOUTEMY <her...@fr...> > > > Hi Dang, > > > > date.format is set the same way as date.locale: > > <logtype id="weblogic"> > > <param name="date.locale">fr_FR</param> > > <param name="date.format">MMM d, yyyy K:mm:ss a zz</param> > > </logtype> > > > > What is the error you're getting? Are you using the GUI or Ant task? > > Do you know the encoding of the log file and your platform encoding? > > > > If you send a zip file with sample log file and rules configuration, I'll > > be able > > to investigate further. > > > > Regards, > > > > Hervé > > > > Le vendredi 28 août 2009, vous avez écrit : > > > Hi, Hervé > > > I'm now studying at logdistiller. And I want to parse some Chinese > > > locale log from weblogic. The date format of chinese weblogic log often > > > looks like: > > > > > > *####<2009-7-24 上午07时39分50秒 ACT> <Info> <Log Management> <> <> > > > <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default > > > (self-tuning)'> <> <> <> <1248439190500> <BEA-170017> <The log file > > > > D:\bea_products\wls923\user_projects\domains\sun_domain\servers\AdminServ > >er > > > > >\logs\AdminServer.log will be rotated. Reopen the log file if tailing > > > has stopped. This can happen on some platforms like Windows.> > > > > > > > > > I've tried to set date.locale to cn_ZH, but I don't know how t0 set > > > date.format for this locale, could you please throw some point on this? > > > > > > > > > Thanks and regards! > > > > > > > > > Dang Hao > > > * |
From: Hervé B. <her...@fr...> - 2009-08-29 09:48:30
|
Hi Dang, date.format is set the same way as date.locale: <logtype id="weblogic"> <param name="date.locale">fr_FR</param> <param name="date.format">MMM d, yyyy K:mm:ss a zz</param> </logtype> What is the error you're getting? Are you using the GUI or Ant task? Do you know the encoding of the log file and your platform encoding? If you send a zip file with sample log file and rules configuration, I'll be able to investigate further. Regards, Hervé Le vendredi 28 août 2009, vous avez écrit : > Hi, Hervé > I'm now studying at logdistiller. And I want to parse some Chinese locale > log from weblogic. The date format of chinese weblogic log often looks > like: > > *####<2009-7-24 上午07时39分50秒 ACT> <Info> <Log Management> <> <> <[ACTIVE] > ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> > <> <> <1248439190500> <BEA-170017> <The log file > D:\bea_products\wls923\user_projects\domains\sun_domain\servers\AdminServer >\logs\AdminServer.log will be rotated. Reopen the log file if tailing has > stopped. This can happen on some platforms like Windows.> > > > I've tried to set date.locale to cn_ZH, but I don't know how t0 set > date.format for this locale, could you please throw some point on this? > > > Thanks and regards! > > > Dang Hao > * |
From: Hervé B. <her...@fr...> - 2008-03-20 10:30:14
|
Feature Requests item #1918390, was opened at 2008-03-18 17:20 Message generated for change (Comment added) made by hboutemy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=629555&aid=1918390&group_id=101369 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interface Improvements (example) Group: None >Status: Closed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Requesting a rule to find the errors or result code in logs Initial Comment: Hi, This is the customized logs as per the log4J properties of weblogic server. Kindly have a look on this & please guide me to find the occurrence of these events like <answercode>A10017</answercode> <sourcecode>CHW10012772</sourcecode> <resultcode>0</resultcode> INFO 2008-03-12 08:59:28,015(mm:ss.SSS) INFO 2008-03-12 08:59:28,265(mm:ss.SSS) 2814928790||getProfileData|| Chantix_BrainInterface||processRequest()||Performance: getProfileData :EndTime:1205326768265 I am enclosing the zipped sample log file Thanks Tushar ---------------------------------------------------------------------- >Comment By: Herve BOUTEMY (hboutemy) Date: 2008-03-20 09:11 Message: Logged In: YES user_id=449266 Originator: NO Hi Tushar, Feature request is not the most appropriate place for such a discussion: using logdistiller's mailing list would be more efficient. I'll comment here my first impressions on your case and close the feature request: if necessary, next steps will have to happen on the mailing list. Your log format is specifi: you'll have to write a custom log parser. Looking at your sample log file, the parser should be relatively easy to write by copying sample CustomLog4jLogEvent classes and doing little modifications. the typical log event is: INFO 2008-03-12 08:59:28,265(mm:ss.SSS) 2814928790||getProfileData||Chantix_BrainInterface||processRequest()||Perfo rmance: getProfileData :EndTime:1205326768265 which will be structured into a LogEvent with IMHO following attributes: - level=INFO - date=2008-03-12 - time=08:59:28,265 - (name to be determined)=2814928790 - (name to be determined)=getProfileData - (name to be determined)=Chantix_BrainInterface - (name to be determined)=processRequest() - (name to be determined)=Perfo rmance: getProfileData :EndTime:1205326768265 When this parser is written and it correctly parses your log files, next step is writing classification rules to patch events you're interested in. Hope this helps. I can do more if we continue the discussion on the mailing list. Hervé ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=629555&aid=1918390&group_id=101369 ------------------------------------------------------- |