Skip to main content
Participant
November 17, 2008
Question

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

  • November 17, 2008
  • 2 replies
  • 588 views
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 has been closed for replies.

    2 replies

    February 26, 2010

    did you ever figure this out?


    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    February 26, 2010

    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

    February 26, 2010

    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") =>

    Known Participant
    November 17, 2008
    Sorry dborowik, but I have no knowledge of this. Wish I could help you!