Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

adding filters on output reports

2004-09-30
2012-10-11
  • Hi, I am a newbie and need help setting filter on my urldetail output report. What I need is to have a report on several pages only. In the instructions it says: "filter can be a regexp on the full key you want awstats to present information about". How do I separate my keys - e.g., I want a report containing the following pages:
    index.html, documents.html and idl.cgi?
    Thanks.

     
    • Do this:

      ^(index.html|documents.html|idl.gi)

      Should work fine.

      Alternatively you could search for .html and .cgi
      ^(.html|.cgi)

      Have a look at this site, it's an excellent tutorial on regex:

      http://www.regular-expressions.info/tutorial.html