ricamoreira  
                
                  
                    January 13, 2021,  7:24pm
                   
                  1 
               
             
            
              Hi,
I’ve setup a GrayLog server to monitor my scripts.
An example of an message:
I’ve already tried the following:{message.scriptname}
 {message.fields.scriptname}
Nothing works, and I still cannot see this fields on the notification.
Can someone help me on this?
             
            
              
            
           
          
            
              
                shoothub  
              
                  
                    January 15, 2021,  8:54am
                   
                  2 
               
             
            
              Check my previous post about it:
  
  
    If you want to use user field (for example: IpAddress) use {$message.fields.IpAddress} : 
 ${foreach backlog message}${message.fields.IpAddress}${end} 
You need to to use cycle foreach for backlog if you want to use message fields. 
Also don’t forgot, that you have to setup number of backlog to 1: in  Alerts - Event Definitions - tab Notifications and field Message Backlog, tick the checkbox and set 1. 
You can also use same technique in message subject, for example I use this: 
User ${foreach b…
   
 
             
            
              1 Like 
            
            
           
          
            
              
                ricamoreira  
              
                  
                    January 15, 2021,  4:34pm
                   
                  3 
               
             
            
              Hello! You just saved my life dude! Thanks a lot!
             
            
              
            
           
          
            
              
                system  
              
                  
                    January 29, 2021,  4:34pm
                   
                  4 
               
             
            
              This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.