Hi,

I have clone graylog web interface 
from https://github.com/Graylog2/graylog2-web-interface/tree/1.2 and run it 
successfully.

Each stream has 'Manage Alerts' function and 'Export as CSV' function.
In 'Manage Alerts' has 'send test mail ' function to send email to stream's 
user.

My problem is I want to attach csv file to email send to stream's user,but 
I can not do it by myself.

I did something.
I found in AlertController.java , I see function

public Result sendDummyAlert(String streamId) {
        try {
            streamService.sendDummyAlert(streamId);
            flash("success", "Sent dummy alert to all subscribers.");
            return redirect(routes.AlertsController.index(streamId));
        } catch (IOException e) {
            return status(504, 
views.html.errors.error.render(ApiClient.ERROR_MSG_IO, e, request()));
        } catch (APIException e) {
            flash("error", "Unable to send dummy alert, check server log 
for details: " + e.getMessage());
            return redirect(routes.AlertsController.index(streamId));
        }
    }
I saw  streamService.sendDummyAlert(streamId) ,but streamService is defined 
in package org.graylog2.restclient.models
Please give me an advice.
Thanks,







-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/6967be07-2d00-4a5f-95ab-cc77d207bbf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to