Forum Discussion
yarivco_99951
Nimbostratus
Nov 09, 2009Sent to ouside syslog using iRule
Hi all,
My first time here.
Can anyone help to erite an irule which send out log each time an IP is connected to virt.(indlude th src ip addv and des real server)
I got complaint that at the application log they sees same ip jump btween two reals server despite i am using a source Ip PRESIST PROFILE.
TNX all
3 Replies
- The_Bhattman
Nimbostratus
I believe you can use the following sample code.
http://devcentral.f5.com/wiki/default.aspx/iRules/In_Depth_Traffic_Analysis_via_iRule.html
Just cut out information you don't want to log
I hope this helps
CB - hoolio
Cirrostratus
In addition to CB's useful suggestion, you can also use the 'log ' option in 9.4 and higher to bypass syslog-ng and send syslog messages directly to a remote syslog server:
iRules Update: The "log" command gets new options
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=190
And here is another Codeshare example which logs IP:port details for TCP/HTTP/UDP VIPs:
http://devcentral.f5.com/wiki/default.aspx/iRules/LogHttpTcpUdpToSyslogng
Aaron - The_Bhattman
Nimbostratus
Good ones Aaron ;-)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
