| |||||||||||
![]() |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
(#1)
|
| Member Posts: 270 Join Date: Oct 2007 Location: Jakarta, Indonesia | Staff-side Parser Log -
27-04-2009, 12:59 PM
For one reason or another, emails fail to get parsed into tickets. As an overworked sysadmin, I don't often get around to trawling the Admin CP Parser Log, searching for 'lost' emails. I'd rather have the helpdesk staff do it themselves, and send me a ticket when they find a log entry that needs closer examination or re-processing. That's where this Staff-side Parser Log comes in. It's basically a reloaded version of the Admin CP parser log, but with extra date- and status-filtering features that come in handy when searching through a massive parser log. When a staff member finds an entry that requires my attention, s/he can click the Log ID and his/her email client will generate a new message with an appropriate subject line. Installation in 4 Steps I use a well-hacked v3.20.x SupportSuite. This modification is given 'as-is'.
PHP Code: PHP Code: PHP Code: I take the premise that staff members should only be able to view successfully parsed emails when the destination department is in the staff members list of assigned departments. (After all, there could be something sensitive in there.) On the other hand, *everybody* should be able to search for failed messages. I've designed my database queries to do just that, but up to now I haven't got it quite right--nor can I figure out what I've done wrong. Maybe you can help? In staff_parserlog.php, go to lines 204 and 237 and uncomment each. (Line 237 is an echo statement that will allow you to view the SQL query.) Uncommenting line 204 *should* enable the department filtering described above. When I run the resulting query in phpMyAdmin, a nice result set is generated. But in the php all I get is an error telling me I've got an 'empty' sql statement. Free: Ticket List & Search | Dept. Display Names Free: Outlook/HTML Tickets| Staff Parser Log Tutorials: SLA System | Template Groups KSS v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4 |
| | |
(#2)
|
| Member Posts: 270 Join Date: Oct 2007 Location: Jakarta, Indonesia |
27-04-2009, 05:36 PM
Version 1.10 adds the following features:
Previously-mentioned department filters still not working. Help appreciated!
Free: Ticket List & Search | Dept. Display Names Free: Outlook/HTML Tickets| Staff Parser Log Tutorials: SLA System | Template Groups KSS v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4 |
| | |
(#3)
|
| Member Posts: 167 Join Date: Dec 2008 Location: Maryland |
27-04-2009, 07:12 PM
Code: $queryInsert .= " WHERE ((parserlogs.logtype LIKE '%success%'".$staffDeptCondition.") OR parserlogs.logtype LIKE '%failure%')"; Kayako Enthusiast since 12/2008 PHP/SQL coder and customizer, and up for ideas. Got a large monitor? Try this mod on for size. Interactive Tooltip/Popup for Client Information. |
| | |
(#4)
|
| Member Posts: 270 Join Date: Oct 2007 Location: Jakarta, Indonesia |
28-04-2009, 02:42 AM
Quote:
Thanks for having a look! Free: Ticket List & Search | Dept. Display Names Free: Outlook/HTML Tickets| Staff Parser Log Tutorials: SLA System | Template Groups KSS v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4 | |
| | |
(#5)
|
| Member Posts: 167 Join Date: Dec 2008 Location: Maryland |
28-04-2009, 08:02 PM
I sent some test emails to a ticket to populate my parser log and all I see on the parserlog view (index.php?_m=tickets&_a=parserlog) and all I see is a flat blue line: Not sure what else to do. I think the SQL statement might be a little screwy. The mail parser logs all incoming e-mail to help debug any problems. Click any subject line to view the message contents. Failed messages can often be re-processed by an Administrator. Click the Log ID to open a support ticket Filter Log Entries Kayako Enthusiast since 12/2008 PHP/SQL coder and customizer, and up for ideas. Got a large monitor? Try this mod on for size. Interactive Tooltip/Popup for Client Information. |
| | |
(#6)
|
| Member Posts: 167 Join Date: Dec 2008 Location: Maryland |
28-04-2009, 08:27 PM
I commented out the date stuff: PHP Code: Code: Invalid SQL: SELECT COUNT(*) AS totalitems FROM `swparserlogs` AS parserlogs LEFT JOIN `swemailqueues` AS queues ON parserlogs.emailqueueid = queues.emailqueueid LEFT JOIN `swdepartments` AS D ON D.departmentid = queues.departmentid WHERE ((parserlogs.logtype LIKE '%success%' AND queues.departmentid IN ("3","5")) OR parserlogs.logtype LIKE '%failure%') AND parserlogs.dateline >= AND parserlogs.dateline <= ; (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND parserlogs.dateline <=' at line 2)
Kayako Enthusiast since 12/2008 PHP/SQL coder and customizer, and up for ideas. Got a large monitor? Try this mod on for size. Interactive Tooltip/Popup for Client Information. |
| | |
(#7)
|
| Member Posts: 270 Join Date: Oct 2007 Location: Jakarta, Indonesia |
29-04-2009, 02:34 AM
Hmmm.... I'm not sure what to say. Other than the departmental permissions issue I haven't been able to resolve, everything is working fine. Remember that my Kayako version is a well-hacked v3.20, so it's possible things have changed in the newer releases (such as the calendar issue you mentioned). I've tested the sql queries, though, using Navicat, and it all seems to work as expected. But this still baffles me: Quote:
Free: Ticket List & Search | Dept. Display Names Free: Outlook/HTML Tickets| Staff Parser Log Tutorials: SLA System | Template Groups KSS v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4 | |
| | |
(#8)
|
(#9)
|
| Member Posts: 270 Join Date: Oct 2007 Location: Jakarta, Indonesia |
29-04-2009, 06:20 PM
Quote:
That aside, I've hacked so much more functionality into 3.20.02 that we're well beyond a simple upgrade. Yet, we seem to be doing mostly ok with what we've got, and the ability to change the code is something I can appreciate. At some point we may extend our expired support subscription and see what can be done about merging some of the new changes. I know you hate to hear that, John, but the lecture won't be worth it. ![]() I did try to collect those emails with a catch-all, but have yet to be successful. I tried for example /\@/ but it caught nothing. Suggestions would be most welcome, though this is off-topic for the thread. Free: Ticket List & Search | Dept. Display Names Free: Outlook/HTML Tickets| Staff Parser Log Tutorials: SLA System | Template Groups KSS v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4 | |
| | |
(#10)
|
(#11)
|
| Member Posts: 270 Join Date: Oct 2007 Location: Jakarta, Indonesia |
01-05-2009, 06:13 AM
Yes well... that's what the parser reports as the final destination email. So I am at a loss, and your professional insight into what might be happening--as opposed to merely pointing out my errors--would greatly assist.
Free: Ticket List & Search | Dept. Display Names Free: Outlook/HTML Tickets| Staff Parser Log Tutorials: SLA System | Template Groups KSS v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4 |
| | |
(#12)
|
(#13)
|
| Member Posts: 270 Join Date: Oct 2007 Location: Jakarta, Indonesia |
11-05-2009, 05:45 AM
Fixed a bug in the Quick Search and expanded the range to include the To and From email addresses (previously the QS only looked in the subject line). See original post for source files. Free: Ticket List & Search | Dept. Display Names Free: Outlook/HTML Tickets| Staff Parser Log Tutorials: SLA System | Template Groups KSS v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4 |
| | |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parser log cleared / deleted early | Merit | SupportSuite, eSupport and LiveResponse | 6 | 29-05-2009 03:26 AM |
| Audit Log & Ticket View: New Ticket in Staff CP logs Staff User who entered ticket | ds289 | Security, permissions and auditing | 5 | 11-03-2009 07:17 PM |
| Mail Parser Log | siena | SupportSuite, eSupport and LiveResponse | 1 | 11-08-2008 09:56 AM |
| E-Mail parser does not fetch mails and does not log anything | stagespace | E-mail Piping Issues | 35 | 21-07-2008 08:35 AM |
| Parser log need not record MIME info | BigDawgRob | Mail parser | 1 | 18-06-2007 12:17 PM |