Forum Discussion
wng_98840
Apr 19, 2012Nimbostratus
bigpipe include
Would the following code work in 9.4.8 and 10.2? I'm trying to monitor for specific logging I setup using an irule. I want to parse out those logs in a separate file. Also how do I go about removing this from the config if I don't need it anymore.
Thanks in advance,
Bill
********************************
bigpipe syslog include '"
filter f_local0 {
facility(local0) and not match(\": \");
};
filter f_local0_customlog {
facility(local0) and match(\": \");
};
destination d_ltm {
file("/var/log/ltm" create_dirs(yes));
};
destination d_customlog {
file(\"/var/log/customlog\" create_dirs(yes));
};
log {
source(local);
filter(f_local0_customlog);
destination(d_customlog);
};
log {
source(local);
filter(f_local0);
destination(d_ltm);
};
"'
- nitassEmployeeyou forgot black slash (\) on d_ltm configuration. others are okay.
[root@ve1023:Active] config b version|grep -iA 1 version BIG-IP Version 10.2.3 112.0 Final Edition [root@ve1023:Active] config b syslog include SYSLOG - Include Data: none [root@ve1023:Active] config [root@ve1023:Active] config bigpipe syslog include '" > filter f_local0 { > facility(local0) and not match(\": \"); > }; > filter f_local0_customlog { > facility(local0) and match(\": \"); > }; > destination d_ltm { > file(\"/var/log/ltm\" create_dirs(yes)); > }; > destination d_customlog { > file(\"/var/log/customlog\" create_dirs(yes)); > }; > > log { > source(local); > filter(f_local0_customlog); > destination(d_customlog); > }; > > log { > source(local); > filter(f_local0); > destination(d_ltm); > }; > > "' [root@ve1023:Active] config [root@ve1023:Active] config b syslog include SYSLOG - Include Data: filter f_local0 { facility(local0) and not match(": "); }; filter f_local0_customlog { facility(local0) and match(": "); }; destination d_ltm { file("/var/log/ltm" create_dirs(yes)); }; destination d_customlog { file("/var/log/customlog" create_dirs(yes)); }; log { source(local); filter(f_local0_customlog); destination(d_customlog); }; log { source(local); filter(f_local0); destination(d_ltm); }; [root@ve1023:Active] config [root@ve1023:Active] config b syslog include none [root@ve1023:Active] config b syslog include SYSLOG - Include Data: none
- wng_98840NimbostratusThanks for the verification. I made some changes to the code to log to a remote log server. I enabled the irule, but don't see anything being written to the remote syslog server. Any ideas?
- nitassEmployeethe filter is correct, isn't it?
- wng_98840NimbostratusThe filters look correct. I used the following below on one of our F5s running v9.3 and it works fine. Wondering if I can use that in 9.4.8 and 10.2.
- wng_98840Nimbostratusall was working. didn't realize 514 was going out a different interface. thanks for the help!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects