Wildcard Host Search

You need additional help with phplogcon, then write into this forum.

Wildcard Host Search

Postby vkbaker on Fri Feb 03, 2006 8:07 pm

Is it possible to perform a widlcard host search from the "Quick Filter Options" screen? For instance, is it possible to pass a host ID of someting like "172.18.*.*" to the query engine?
vkbaker
New
 
Posts: 2
Joined: Fri Feb 03, 2006 7:48 pm

phpLogCon professional services

  • Custom phpLogCon configuration?
  • Maintenance Contract?
  • Installation support?

Postby mmeckelein on Mon Feb 06, 2006 10:10 am

Hello,

This feature is not available in the current version. However, to implement this looks simply.

Please open phplogcon\classes\eventfilter.php file with an editor. Search for the following line:
Code: Select all
$tmpSQL.=" AND FromHost='".$_SESSION['filhost']."'";

replace it with the following
Code: Select all
//$tmpSQL.=" AND FromHost='".$_SESSION['filhost']."'";
$tmpSQL.=" AND FromHost like '".db_get_wildcut().$_SESSION['filhost'].db_get_wildcut()."'";


Then use the search string "172.18." in order to get all 172.18.*.* machines. Hope this help.

Michael
mmeckelein
Adiscon Support
 
Posts: 167
Joined: Wed Mar 12, 2003 12:07 pm

Postby vkbaker on Fri Mar 03, 2006 10:56 pm

Excellent, thank you!
vkbaker
New
 
Posts: 2
Joined: Fri Feb 03, 2006 7:48 pm

Google Ads



Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron