Skip to main content
Participant
Nov 17, 2008 8:05 PM UTC
Question

clientid type differs between client (letters) and server (numbers)

Hi all,

I am trying to make some useful reporting using the access log files and clientid.
I assumed c-client-id and Stream.onStatus infoObject clientid content were the same thing, but when testing my client machine returns client like BIAYYjdH and the server logs clientid as numbers only.

I have spent a few hours looking on the net to see wether there was any discussion about clientid type or format, but still no luck.

Am I going the wrong direction?


Thanks a lot,


Best
d
    This topic is closed to new replies. Start a new post to keep the conversation going.

    4 replies

    Feb 26, 2010 5:23 AM UTC

    did you ever figure this out?


    Translate
    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    Feb 26, 2010 6:34 AM UTC

    Hi,
    Like i have posted in the other thread, access.log displays the client id in integer. So you have to use c++ to convert

    the client ID to char like what you get in action script.

    // The client id that you got from access.log > 'c-client-id' field
    INT64 myClientID = 4702111235364176239; 
    char new_clientID[9];
    memset(new_clientID, 0, 9);
    memcpy(new_clientID, &myClientID, sizeof(myClientID));
    //You get your output in the 'new_clientID'


    Regards,

    Janaki L

    Translate
    Feb 26, 2010 4:42 PM UTC

    or (for others looking at this) in ruby (which is the language that

    I'm using to parse the logs):

    .pack("Q") => "DCAoEU7K"

    'DCAoEU7K'.unpack("Q") =>

    Translate
    Known Participant
    Nov 17, 2008 8:53 PM UTC
    Sorry dborowik, but I have no knowledge of this. Wish I could help you!
    Translate