# Log Parsing

**URL:** https://forums.plex.tv/t/log-parsing/895417
**Category:** General Discussions
**Created:** [November 14, 2024, 1:55pm UTC](https://forums.plex.tv/t/log-parsing/895417 "2024-11-14T13:55:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![GreyAreaUK](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/greyareauk/32/142513_2.png) [@GreyAreaUK](https://forums.plex.tv/u/GreyAreaUK)
#### Post date: [November 14, 2024, 1:55pm UTC](https://forums.plex.tv/t/log-parsing/895417/1 "2024-11-14T13:55:53Z")

</div>

Purely as a programming exercise I’m writing something in VB to parse the Plex Media [Server logs](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) to find what’s been watched or viewed since the last time it updated.

While I can _sort_ of get the names of videos that have been played (kind of) I can’t for the life of me find where to see what images have been viewed.

For the videos I’m scraping ‘Plex Media Server.log’ (and since it’s hosted on a Synology NAS that file is under \{server}\PlexMediaServer\AppData\Plex Media Server\Logs)

Where should I be looking for the images? So, for instance, I’d earlier viewed an image library of chilli peppers I should be able to see that I pulled up ‘Trinidad Scorp 3.jpg’

It’s no big deal if this can’t (easily) be done - as I say, it’s mostly just for fun.

Many thanks.

---

<div class="post-metadata">

### Author: ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)
#### Post date: [November 14, 2024, 2:16pm UTC](https://forums.plex.tv/t/log-parsing/895417/2 "2024-11-14T14:16:31Z")

</div>

In the log, you should be able to find lines like:  
`GET /photo/:/transcode?width=360&height=360&minSize=1&upscale=1&url=%2Flibrary%2Fmetadata%2F19672%2Fthumb%2F1731546069%3FX-Plex-Token%3Dxxxxxxxxxxxxxxxxxxxx`

In above, `19672` is the ID of the artist, and `1731546069` the id of the image

So with that in mind, you can from your code browse to `https://<IP_OF_PMS>:32400/library/metadata/19672/` and see all metadata about the artist

If you wanna see the picture, the url would be: `https://<IP_OF_PMS>:32400/library/metadata/19672/thumb/1731546069`

---

<div class="post-metadata">

### Author: ![GreyAreaUK](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/greyareauk/32/142513_2.png) [@GreyAreaUK](https://forums.plex.tv/u/GreyAreaUK)
#### Post date: [November 14, 2024, 2:28pm UTC](https://forums.plex.tv/t/log-parsing/895417/3 "2024-11-14T14:28:15Z")

</div>

Nice!

Thank you very much!

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [February 12, 2025, 2:28pm UTC](https://forums.plex.tv/t/log-parsing/895417/4 "2025-02-12T14:28:27Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
