How add custom message in alert


(Rayees Namathponna) #1

Hi All,

In my graylog Email alert generate with URL https://xxx.xxx.206.165:9000/streams/58b3b493b792147c7cb50cf1/messages?rangetype=absolute&from=2017-02-27T05:11:47.823Z&to=2017-02-27T05:13:47.823Z&q=*

I want to appended extra parameter to select field be default, them we can direclty go to URL with all select fields, see the example below here i need to remove 'q=*'
and add fields like "Input_App_Name_01, Input_App_Size_01, Input_App_Name_02, Input_App_Size_02, " etc

any suggestion to do this ,

https://xxx.xxx.206.165:9000/streams/58b3b493b792147c7cb50cf1/messages?rangetype=absolute&from=2017-02-27T05:11:47.823Z&to=2017-02-27T05:13:47.823Z&fields=Input_App_Name_01%2COutput_App_Size_01%2CInput_App_Name_02%2COutput_App_Size_02%2CInput_App_Name_03%2COutput_App_Size_03%2Cappname%2CInput_App_Size_01%2CInput_App_Size_02%2Cjob_date%2Cstatus%2Csource%2Cfile&width=1451&highlightMessage=&q=message%3A+%22Run+complete%22+AND+level%3A+INFO+AND+file%3A+%22%2Fvar%2Flog%2Ftest_etl.log%22+

(Jochen) #2

Modifying the URL in the stream_url variable is currently not possible.

See http://docs.graylog.org/en/2.2/pages/streams/alerts.html#email-alert-notification for a list of available variables.