I need help me
I followed the steps but I can't get the IRULE to work.
when HTTP_REQUEST {
set url "identities-esb.rg.repsol.com"
set url [HTTP::header Host][HTTP::uri]
set vip [IP::local_addr]:[TCP::local_port]
}
when HTTP_RESPONSE {
set client [IP::client_addr]:[TCP::client_port]
set node [IP::server_addr]:[TCP::server_port]
set nodeResp [HTTP::status]
}
log local0.
filter f_local0 {
facility(local0) and level(info..emerg);
}
destination d_ltm {
file("/var/log/ltm" create_dirs(yes));
}
log {
source(local);
filter(f_local0);
destination(d_ltm);
}
This is the error that appears in F5
01070151:3: Rule [/TI_TECNOLOGIA_WEB/identities_443] error: /TI_TECNOLOGIA_WEB/identities_443:13: error: [command is not valid in the current scope][log local0. ]
/TI_TECNOLOGIA_WEB/identities_443:14: error: [undefined procedure: filter][filter f_local0 {
facility(local0) and level(info..emerg);
}]
/TI_TECNOLOGIA_WEB/identities_443:18: error: [undefined procedure: destination][destination d_ltm {
file("/var/log/ltm" create_dirs(yes));
}]
/TI_TECNOLOGIA_WEB/identities_443:22: error: [command is not valid in the current scope][log {
source(local);
filter(f_local0);
destination(d_ltm);
}]
regards