# Using request Logging Profile with external syslog server: to log as HTTP Apache format

**URL:** <https://community.f5.com/t/using-request-logging-profile-with-external-syslog-server-to-log-as-http-apache-format/21817>\
**Category:** Technical Forums\
**Tags:** design, tmos, ltm, application-delivery\
**Created:** [March 24, 2014, 10:02am UTC](https://community.f5.com/t/using-request-logging-profile-with-external-syslog-server-to-log-as-http-apache-format/21817 "2014-03-24T10:02:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mazen2006\_14317](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@Mazen2006\_14317](https://community.f5.com/u/Mazen2006_14317)\
**Post date:** [March 24, 2014, 10:02am UTC](https://community.f5.com/t/using-request-logging-profile-with-external-syslog-server-to-log-as-http-apache-format/21817/1 "2014-03-24T10:02:58Z")

</div>

```tcl
Hello,

I have an LTM v11.2.1 and a syslog server. I have a VS_TV that handles HTTP requests/responses flows and send it to choosen nodes.

I need to log theses HTTP request and response as apache log format using the request logging profile and send the results to my external syslog server(listening on port 514). I have already a pool "POOL_SYSLOG" which have as member my syslog server(NODE_SYSLOG:514).

Can i do this and how? what should i create? Can i use my existing POOL_SYSLOG as the request logging pool? i read in the doc: "http://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm-implementations-11-1-0/19.htmlconceptid" that we should create a pool with request logging to manage HTTP traffic and that the service port should be 80. but my syslog listen on port 514...

```

Help please!

---

<div class="post-metadata">

**Author:** ![Patrik\_Jonsson](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/patrik_jonsson/32/20827_2.png) [@Patrik\_Jonsson](https://community.f5.com/u/Patrik_Jonsson)\
**Post date:** [March 24, 2014, 1:02pm UTC](https://community.f5.com/t/using-request-logging-profile-with-external-syslog-server-to-log-as-http-apache-format/21817/2 "2014-03-24T13:02:19Z")

</div>

Hi!

The port is not a problem. You need to use an iRule to send the syslog messages though.

Check this one out:

> **[DevCentral - An F5 Technical Community](https://community.f5.com/)**
>
> DevCentral is an online technical community where engineers and practitioners collaborate, share knowledge, and solve problems related to F5 technologies and industry trends.

It’s W3C formatted, but you can modify if needed. 🙂

/Patrik

---

<div class="post-metadata">

**Author:** ![Mazen2006\_14317](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@Mazen2006\_14317](https://community.f5.com/u/Mazen2006_14317)\
**Post date:** [March 24, 2014, 1:09pm UTC](https://community.f5.com/t/using-request-logging-profile-with-external-syslog-server-to-log-as-http-apache-format/21817/3 "2014-03-24T13:09:22Z")

</div>

```tcl
In fact, i want to know if i can configure a request logging profile that i customize to log localy in Apache combined format and apply this to an existing HTTP VS? I don't want to use an iRule...

```

---

<div class="post-metadata">

**Author:** ![Patrik\_Jonsson](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/patrik_jonsson/32/20827_2.png) [@Patrik\_Jonsson](https://community.f5.com/u/Patrik_Jonsson)\
**Post date:** [March 24, 2014, 1:26pm UTC](https://community.f5.com/t/using-request-logging-profile-with-external-syslog-server-to-log-as-http-apache-format/21817/4 "2014-03-24T13:26:09Z")

</div>

Sorry mate, never used that one. Did not even know it existed. 🙂 I don’t think using the 514 pool should be any problem though as the request logging profile looks like an interface to the hsl iRules (which accepts udp 514 syslog servers). Hope someone else can you you a more definite answer, but the best way should be to try. 🙂 /Patrik

---

<div class="post-metadata">

**Author:** ![Mazen2006\_14317](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@Mazen2006\_14317](https://community.f5.com/u/Mazen2006_14317)\
**Post date:** [March 24, 2014, 2:06pm UTC](https://community.f5.com/t/using-request-logging-profile-with-external-syslog-server-to-log-as-http-apache-format/21817/5 "2014-03-24T14:06:02Z")

</div>

```tcl
Ok, nop, thank you for your contribution...

Did anyone already used the request logging profile?

My need: create a standard logging profile to log as apache HTTP combined format without using an iRule. I need to be able to apply this profile to any VS on which i need to activate the apache HTTP combined log. Is it possible? If yes, how should i do?

Help please!
Mazen

```

---

<div class="post-metadata">

**Author:** ![Mazen2006\_14317](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@Mazen2006\_14317](https://community.f5.com/u/Mazen2006_14317)\
**Post date:** [March 24, 2014, 4:42pm UTC](https://community.f5.com/t/using-request-logging-profile-with-external-syslog-server-to-log-as-http-apache-format/21817/6 "2014-03-24T16:42:02Z")

</div>

```tcl
Thanks Kevin,

I have already a request logging profile "CP_log_profile" that used my "POOL_SYSLOG". Could i add the "apache-log-format" also to the same syslog pool? Did it impact the existing log? Note that the LTM is configured to remote logging to the "POOL_SYSLOG".
If an iRule use the HSL command or the log command to send log to this pool, i need to know if the request logging profile attached to the syslog pool is used or not?
set hsl [HSL::open -proto TCP -pool /CLI01_COPR/POOL_SYSLOG]
HSL::send $hsl

```

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [March 24, 2014, 5:57pm UTC](https://community.f5.com/t/using-request-logging-profile-with-external-syslog-server-to-log-as-http-apache-format/21817/7 "2014-03-24T17:57:55Z")

</div>

An logging iRule and a Request Logging profile are different things. An iRule attached the virtual server will log what’s specified in the iRule. A Request Logging profile attached to the virtual server will log what’s specified in the Request Logging profile.

---

<div class="post-metadata">

**Author:** ![Hurricane\_1983](https://avatars.discourse-cdn.com/v4/letter/h/4da419/32.png) [@Hurricane\_1983](https://community.f5.com/u/Hurricane_1983)\
**Post date:** [September 22, 2014, 1:24pm UTC](https://community.f5.com/t/using-request-logging-profile-with-external-syslog-server-to-log-as-http-apache-format/21817/8 "2014-09-22T13:24:25Z")

</div>

Hi, is it possible using the request logging profile to send http request according to ArcSight format? Thanks,

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [September 22, 2014, 1:41pm UTC](https://community.f5.com/t/using-request-logging-profile-with-external-syslog-server-to-log-as-http-apache-format/21817/9 "2014-09-22T13:41:54Z")

</div>

You could do this with a request logging profile and save the trouble of an iRule. The following guide talks about an ArcSight log entry looking like this:

[http://mita-tac.wikispaces.com/file/view/CEF+White+Paper+071709.pdf](http://mita-tac.wikispaces.com/file/view/CEF+White+Paper+071709.pdf)

```tcl
CEF:Version|Device Vendor|Device Product|Device Version|Signature ID|Name|Severity|Extension

```

Ex. Sep 19 08:26:10 host CEF:0|security|threatmanager|1.0|100|worm successfully stopped|10|src=10.0.0.1 dst=2.1.2.2 spt=1232

Here’s details on the request logging profile.

> **[404 Page not found | BIG-IP Documentation](https://techdocs.f5.com/kb/en-us/products/big-ip-aam/manuals/product/aam-implementations-11-4-0/20.html?sr=33764514)**
>
> Usage information and technical documentation for BIG-IP and other related F5 products

Based on that document, a fairly common request logging filter might look something like this:

$DATE\_NCSA - $CLIENT\_IP - $SERVER\_IP - $HTTP\_REQUEST - $HTTP\_STATUS - ${User-agent}

---

<div class="post-metadata">

**Author:** ![Hurricane\_1983](https://avatars.discourse-cdn.com/v4/letter/h/4da419/32.png) [@Hurricane\_1983](https://community.f5.com/u/Hurricane_1983)\
**Post date:** [September 22, 2014, 2:01pm UTC](https://community.f5.com/t/using-request-logging-profile-with-external-syslog-server-to-log-as-http-apache-format/21817/10 "2014-09-22T14:01:49Z")

</div>

many thanks Kevin.
