Forum Discussion
Sorry, edited the previous code snippet. "set" should be used for variable creation.
Oh right, I should have know that as well. However it still does not work as it does not like something in the syntax. Also I am not triggering it based on the host. The item that is supposed to trigger the event is if the http header does not have a specific hostname in the header.
- Vijay_EAug 09, 2019Cirrus
So, it isn't working but no error ? If so, have you tried using log local0 for logging ?
- pchaceAug 09, 2019Nimbostratus
No, it still gives an error when I try to save the rule. The error is: 01070151:3: Rule [/Common/rule_abc_host_header_replace] error: /Common/rule_abs_host_header_replace:2: error: [wrong # args][set HOST = [string tolower [HTTP::host]]]
- Vijay_EAug 09, 2019Cirrus
Based on the error message, it looks like you have an extra ] in the set command.