|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.hawlitzek.logparser.FHDetailHttpLogParser
This log analyzer reads a given http log and counts how many requests come from a browser or search robot. It also allows to set filter (e.g. for counting only html page requests or images) or to count search requests from search engines. It also display which query items are used to find your pages. At last it prints a little statistic.
Field Summary | |
static java.lang.String |
VERSION
|
Constructor Summary | |
FHDetailHttpLogParser()
constructor |
Method Summary | |
protected void |
adjustBrowserStats(java.lang.String browser)
abjust the statistic of browser occurences for a log entry |
protected void |
adjustDate(LogEntry logEntry)
abjust the statistic for a specific date |
protected void |
adjustForSingleIP(LogEntry logEntry)
abjust the statistic for a specific IP address |
protected void |
adjustPageStats(LogEntry logEntry)
abjust the statistic of a referenced page or ressource |
protected void |
adjustSearchEngineStats(LogEntry logEntry)
abjust the statistic of a referenced page or ressource |
void |
displayStats(java.lang.String filterType)
display statistics |
java.lang.String |
getBrowserStats(boolean alphabetic)
display browser statistics |
java.lang.String |
getDateStats()
display Date statistics |
java.lang.String |
getFilteredOccurences()
retrun the number of log entries which match to the filter |
java.lang.String |
getIPStats()
display IP statistics |
java.lang.String |
getPageStats()
display page statistics |
java.lang.String |
getSearchEngineStats()
displays the search engine/google statistics |
java.lang.String |
getTotalOccurences()
retrun the total number of log entries |
static boolean |
isSearchEngineStats(java.lang.String filterType)
is this search using referrer or ressource for filtering? |
static void |
main(java.lang.String[] args)
main method |
void |
readFile(java.io.File file,
java.lang.String filterType,
java.lang.String[] filter)
read and parse a log file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String VERSION
Constructor Detail |
public FHDetailHttpLogParser()
Method Detail |
protected void adjustBrowserStats(java.lang.String browser)
protected void adjustPageStats(LogEntry logEntry)
protected void adjustForSingleIP(LogEntry logEntry)
protected void adjustDate(LogEntry logEntry)
protected void adjustSearchEngineStats(LogEntry logEntry)
public void displayStats(java.lang.String filterType)
public java.lang.String getBrowserStats(boolean alphabetic)
public java.lang.String getFilteredOccurences()
public java.lang.String getPageStats()
public java.lang.String getIPStats()
public java.lang.String getDateStats()
public java.lang.String getSearchEngineStats()
public java.lang.String getTotalOccurences()
public static boolean isSearchEngineStats(java.lang.String filterType)
filterType
- java.lang.String
public static void main(java.lang.String[] args)
public void readFile(java.io.File file, java.lang.String filterType, java.lang.String[] filter) throws InvalidLogEntryException
file
- http log filefilterType
- type of the search: HTML: only html pages,
MAIN: only main html pages
IMG: only images
REF: look in referrer, not in requested ressource
filter
- set of AND combined search items
InvalidLogEntryException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |