Skip to main content
Known Participant
February 9, 2010
Question

Why no log info for additional instances, is _definst_ the catch all?

  • February 9, 2010
  • 2 replies
  • 706 views

Im very new to flash server (as of a few hours :-)) and I have a quick q.

I've set up multiple instances for live streams.  However, when I try to view the logs for a particular instance there isn't any info.  But when I look at the log info for the _definst_ I see all the connection info, for all the streams.  Is that how it's supposed to work?  Can I not view specific logs for each instance distinctly?

Thanks!

    This topic has been closed for replies.

    2 replies

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    February 9, 2010

    Hey yes you can very well lookup the log file for a specific instance of an application. But make sure you connected to a particular instance and not to the default instance "_definst_". I hope you know that if no instance name is mentioned in NetConnection connection url, then it connects to the default instance "_definst_". In the access.log file you can check for the instances which you have connected to under the field "x-appinst". Also you can use "Administration Console" to view the loaded instances of the applications, when you have connected and playing a stream. It is located at "$Root\\Flash Media Server 3.5\tools\fms_adminConsole.swf".

    Regards,

    Janaki L

    Participating Frequently
    February 9, 2010

    No it should not work that way. It should create separate log folder for each instance. When you say you have set up live streams for different instances, what do you mean, i feel what you are doing is connecting to same application and same instance but playing different live streams , if thats the scenario you are trying what you are seeing is expected. Its only when you connect to different instance of particular application you will different log files.

    Example: (Connecting to same app ,same instance of app and playing different streams)

    Connection URL : rtmp://myserver/live

    Stream Name: live1

    Connection URL : rtmp://myserver/live

    Stream name : live2

    In above example you will get all log written in _definst_ folder of "live" application

    But say if you were running below scenario (Connecting to same app ,different instance of app and playing different streams)

    Connection URL : rtmp://myserver/live/room1

    Stream Name: live1

    Connection URL : rtmp://myserver/live/room2

    Stream name : live2

    In this case , you will two folders "room1" and "rrom2" under "live" application log folder.

    Hope this helps.

    Known Participant
    February 9, 2010

    SE:

    You're correct my set up is like this:

    Connection URL : rtmp://myserver/live

    Stream Name: live1

    I can't figure out how to add the "room1" "room2" in the Admin console. What do I do?

    I'm trying to find good documentation too.  The pdfs included don't seem to be very clear and concise, is it me or is that the case?

    Participating Frequently
    February 10, 2010

    Hi Paul,

    You dont have to do much to set up room1 or room2.

    Try out following:

    Let you first publisher connect to FMS using following connection URI: rtmp://myServer/live/room1 ( live is application name and room1 is instance name) and let stream name be "live1"

    Let your second publisher connect to FMS using connection URI: rtmp://myServer/live/room2  ( live is application name and room2 is instance name) and let stream name be "live2"

    Now you have two instances up for application "live" and one stream is getting published for each instance i.e.live1 for room1 and live2 for room2.

    Now you can check the logs and see "room1" and "room2" getting created under "live" application log folder under <FMSRoot>/logs (where FMSRoot is your installed directory)

    Now open you subscriber and subscribe using following setting subscribe to live streams

    Subscriber 1:

    Connection URI: rtmp://myServer/live/room1

    Stream name: live1

    Subscriber 2:

    Connection URI: rtmp://myServer/live/room2

    Stream name: live2

    Hope this helps , if you want to set up VOD kind of scenario you need to place your media files under "streams/<instancename>" folder of application like streams/room1.

    Hope this helps. Please let me know if you need any more information.

    As far docs are concerned see following docs:

    NetConnection section of flashmediaserver_3.5_AS2LR.pdf -  page 41 (This is AS2 you can check AS3 similar section flashmediaserver_3.5_AS3LR folder)

    Getting Started section of flashmediaserver_3.5_dev_guide.pdf (page 6)

    Connecting to Server of flashmediaserver_3.5_dev_guide.pdf (page 20)

    Hope this helps