Bug 1305166 - [RFE] Allow oo-last-access to ignore user agents
Summary: [RFE] Allow oo-last-access to ignore user agents
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Timothy Williams
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks: 1277547
TreeView+ depends on / blocked
 
Reported: 2016-02-05 21:44 UTC by Andy Grimm
Modified: 2016-11-08 03:48 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-04 20:34:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
WIP Patch (1.38 KB, patch)
2016-02-05 21:44 UTC, Andy Grimm
no flags Details | Diff

Description Andy Grimm 2016-02-05 21:44:08 UTC
Created attachment 1121523 [details]
WIP Patch

As with unidling, it would be useful to be able to ignore certain user agent strings such as bots/spiders when deciding which applications to idle.

Ideally, a single configuration file could be used by both oo-last-access and restorer.php, since the user agent strings would be the same for both.

The attached patch illustrates the idea, but does not implement a configuration option or default location for the config file path yet.  It also matches against the entire apache log line rather than just the user agent string, so we may want to improve that (though if user agent strings are specific enough, it is unlikely that they would match other parts of the log line).  We also may want to sanitize the input before passing it into awk.


Note You need to log in before you can comment on or make changes to this bug.