Trend Alerts reports


The Trend Alerts reporting system provides information about queries which have had a large increase in their query volume over a short space of time i.e. a "spike" in activity for that query.

Trend Alerts were previously known as Pattern Analyzer alerts.

Trend Alerts Report

The Trend Alerts report provides details of the most prominent detected queries for a given time period. The report page is available from the analytics tab on the administration home page.


The Trend Alerts report presents a list of the most significantly increased queries detected by Funnelback Analytics during the selected time period. In the example below, we have chosen to view entries for all time.

For this example collection, Trend Alerts flagged one query on Tuesday Feb 7th 2007.


The query column displays the query which was detected (in this example "awards"), with a related query listed in small font underneath it.

The shape column displays a sparkline showing the rate of occurrences of this query over the five days before and after the detection of the query spike. Clicking on this sparkline shows the full query time-plot as described below.

The confidence column indicates how significant Trend Alerts considers this query trend to be relative to the historical information available. The higher percentage it has, the better chance the query is an actual spike as opposed to a normal increase due to the increase in overall query volume.

The peak column identifies the date (within the 10 days around the query's detection) on which most instances of the detected query were received.

The increase column provides a percentage measure of the query volume increase for the past seven days vs the preceding seven days (or 24 hours in the case of queries detected for a single hour).

The user locations column lists the locations from which the query most frequently arrived, based on the requesting IP address.

The export options to the right of the report allow both a PDF and CSV export of the reported data for printing or further processing.

Query Volume Chart

Clicking on the sparkline presented in the dashboard above provides access to the chart of the query volume and the two most related queries over the selected time period (or the two weeks either side of the detected outlier for short time periods).

The chart is interactive and which will display the date and individual query values for each day as the mouse moves over the chart (as shown above the chart in the screen-shot below).


As with the dashboard, navigation through time can be performed with the upper navigation pane and the chart can be exported in CSV, XML and PDF format.

The chart also provides two other facilities for exploring the query volume data:

Please note that in a standard Funnelback installation, Trend Alerts is performed more frequently than the process which updates the time plot charts. This means that after a query is detected, it may take up to 24 hours for the time plot chart to display the queries which created the spike.

Email Alerting

Funnelback can be configured to send alert emails every time a query is detected by Trend Alerts to allow real-time action to be taken as required.

To configure email alerts for Trend Alerts, click the "Edit Analytics Email Settings" link in the collection's Analyse tab.



Please note that Funnelback must be configured with a valid SMTP server during installation for email to be sent successfully. SMTP settings can be adjusted in the global.cfg file in install_dir/conf/global.cfg if required.

Updating Trend Alert Reports

Trend Alert reports are automatically updated every hour by a scheduled task, and do not require any manual updating or configuration, however the Trend Alert reports will only be generated for collections for which query reports have been updated.

Eliminating Noise

Some search services receive significant numbers of automated or spam queries which may be detected, but are not of interest. Such queries can be eliminated from consideration through the collection's reporting-blacklist.cfg file.

Excluding Collections

The analytics.outlier.exclude_collection setting can be set to true to disable Trend Alerts entirely for a collection.

Query Log Naming and Rotation

When operating Funnelback in a multi-server configuration, some care must be taken to ensure query logs are available to the Trend Alerts system. For performance reasons Trend Alerts requires that archived log files be identified with a date stamp in the file name (for example queries.log.20090902.gz), as these date stamps are used to restrict the logs required for pattern analysis.

Standard practice within a multiple server set-up would be to transfer all query log files to a server responsible for analytics, retaining the date stamp in the file name and adding a hostname to ensure log names are unique.

Please also note that Trend Alerts may fail to detect some queries when processing historical data for collections which have been updated less frequently than once per month. This issue can be rectified by manually splitting any query log files spanning more than a day into individual logs with date stamps.

See also