# ASM LOGS

**URL:** <https://community.f5.com/t/asm-logs/73295>\
**Category:** Technical Forums\
**Tags:** security, application-delivery\
**Created:** [October 18, 2023, 6:35am UTC](https://community.f5.com/t/asm-logs/73295 "2023-10-18T06:35:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![THE\_BLUE](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@THE\_BLUE](https://community.f5.com/u/THE_BLUE)\
**Post date:** [October 18, 2023, 6:35am UTC](https://community.f5.com/t/asm-logs/73295/1 "2023-10-18T06:35:18Z")

</div>

wher asm logs stored (event logs)? i want access the file using winSCP !

---

<div class="post-metadata">

**Author:** ![Daniel\_Wolf](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/daniel_wolf/32/1119_2.png) [@Daniel\_Wolf](https://community.f5.com/u/Daniel_Wolf)\
**Post date:** [October 18, 2023, 8:13am UTC](https://community.f5.com/t/asm-logs/73295/2 "2023-10-18T08:13:52Z")

</div>

Hi&nbsp; @THE_BLUE ,

ASM event logs are stored in&nbsp;/var/log/asm.  
ASM request logs are stored in a MySQL database. Check this article how you can access the data in the database from the CLI.  
[K06821426: Viewing BIG-IP ASM request logs from MySQL database](https://my.f5.com/manage/s/article/K06821426)

KR  
Daniel

---

<div class="post-metadata">

**Author:** ![THE\_BLUE](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@THE\_BLUE](https://community.f5.com/u/THE_BLUE)\
**Post date:** [October 18, 2023, 4:46pm UTC](https://community.f5.com/t/asm-logs/73295/3 "2023-10-18T16:46:02Z")

</div>

i go through the article&nbsp; there is a command :

mysql -uasm -p`perl -MF5::Cfg -e ‘print F5::Cfg::get_mysql_password()’` -e “select \*&nbsp;from PRX.REQUEST\_LOG where support\_id = \<support\_ID\>\G”

so i have to write the support id inside \<\> as below?

mysql -uasm -p`perl -MF5::Cfg -e ‘print F5::Cfg::get_mysql_password()’` -e “select \*&nbsp;from PRX.REQUEST\_LOG where support\_id = \<15287133167450849374\>\G”

---

<div class="post-metadata">

**Author:** ![Daniel\_Wolf](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/daniel_wolf/32/1119_2.png) [@Daniel\_Wolf](https://community.f5.com/u/Daniel_Wolf)\
**Post date:** [October 18, 2023, 4:55pm UTC](https://community.f5.com/t/asm-logs/73295/4 "2023-10-18T16:55:42Z")

</div>

From my notes, this is a valid query

```bash
mysql -uasm -p`perl -MF5::Cfg -e 'print F5::Cfg::get_mysql_password()'` -e "select * from PRX.REQUEST_LOG where support_id = 2259937930602610699\G"

```

No pointed brackets \<\> required.

---

<div class="post-metadata">

**Author:** ![THE\_BLUE](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@THE\_BLUE](https://community.f5.com/u/THE_BLUE)\
**Post date:** [October 18, 2023, 5:00pm UTC](https://community.f5.com/t/asm-logs/73295/5 "2023-10-18T17:00:18Z")

</div>

thank you very much, i will try .

But if i want to search based on username, then i have to replace \G with \Char?

---

<div class="post-metadata">

**Author:** ![SeanMenard](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@SeanMenard](https://community.f5.com/u/SeanMenard)\
**Post date:** [November 7, 2023, 6:48am UTC](https://community.f5.com/t/asm-logs/73295/6 "2023-11-07T06:48:57Z")

</div>

To access Oracle ASM logs via WinSCP, you’ll need SSH access to your server. You can commonly find ASM logs in the `$ORACLE_BASE/diag/asm/+asm/asm/trace` directory.
