Skip to main content
Participant
Jul 27, 2010 8:47 PM UTC
Answered

Appending User information string into access.log

Hi,

I want to add some custom string into the FMS log file. If I am playing a video and I want to append some string every time when that video is played, which is in some way useful to me in analyzing FMS log, then is there anything provided or some function in which we can just pass the string as an input argument that appends it at appropriate place in the log file.

Thank you.

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer
    Jul 28, 2010 6:44 AM UTC

    Hi Mayank

    I think appending custom information to access log maynot be possible other than what is suggested in the other post, http://forums.adobe.com/message/3005886#3005886

    If you want to display some custom information whenever an event like play occurs, apart from the information that access log provides then I would suggest you to check out the authorization plug-in feature of FMS.

    You could refer http://help.adobe.com/en_US/FlashMediaServer/3.5_Plugin/WS5b3ccc516d4fbf351e63e3d11a0d662434-7fe8.html#WS5b3ccc516d4fbf351e63e3d11a0d662434-7fe2

    The authorization plugin allows you to monitor server events like connect, play, stop etc and access various fields available for those events. It also allows you to log custom information when a particular event occurs by suitably writing the code for it in the auth plug-in. One can write all the relevant events, fields and custom information to the authMessage.00.log which is created alongside access.00.log.

    Regards

    Mamata

    3 replies

    Correct answer
    Jul 28, 2010 6:44 AM UTC

    Hi Mayank

    I think appending custom information to access log maynot be possible other than what is suggested in the other post, http://forums.adobe.com/message/3005886#3005886

    If you want to display some custom information whenever an event like play occurs, apart from the information that access log provides then I would suggest you to check out the authorization plug-in feature of FMS.

    You could refer http://help.adobe.com/en_US/FlashMediaServer/3.5_Plugin/WS5b3ccc516d4fbf351e63e3d11a0d662434-7fe8.html#WS5b3ccc516d4fbf351e63e3d11a0d662434-7fe2

    The authorization plugin allows you to monitor server events like connect, play, stop etc and access various fields available for those events. It also allows you to log custom information when a particular event occurs by suitably writing the code for it in the auth plug-in. One can write all the relevant events, fields and custom information to the authMessage.00.log which is created alongside access.00.log.

    Regards

    Mamata

    Translate
    Mayank_JAuthor
    Participant
    Jul 29, 2010 7:23 PM UTC

    Hi Mamata,

    Thanks for your response.

    I have one query apart from this. We have cs-uri-query, x-sname-query which gives the query string of the uri. I'm passing user ID of the person who watched the video as a part of query string in addition to the video path using "FlashVars". But when I checked the events namely cs-uri-query and x-sname-query in the logfiles they are just displaying the path of the video and not the user ID.

    Do I need to check some other fields for that. Or may be I need to change some code in .fla file so that it can take the user ID into the query string.

    Thank You.

    Translate
    Jul 30, 2010 11:51 AM UTC

    Hi Mayank

    There is no way to display the custom user id that you are sending by simply adding the standard fields in access log.

    So you could use the 2nd option you mentioned, that is ,..."may be I need to change some code in .fla file so that it can take the user ID into the query string."

    You can refer to the post http://forums.adobe.com/message/3005886#3005886 where Abhishek suggests the workaround by which you can accomplish this.

    Regards

    Mamata

    Translate