Announcement

Collapse
No announcement yet.

Aligning on variable data

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Aligning on variable data

    Hi,
    I am trying to align an input and output xml logs that are recording SOAP messages. They are correlated via a XML attribute, and I would like to allign via them. For example, the in bound log has a xml attribute messageid="12345". The outbound log is using the same variable message id number and attribute. I basically need to align on specific variable data that changes with every message. Is there a way to do this?

    Thanks,
    +Brian

  • #2
    Re: Aligning on variable data

    Could you provide xml snippets that you would want to be detected as the same?

    I also found this forum post that may be the answer you are looking for: http://www.scootersoftware.com/ubbthread...h=true#Post7365

    It contains a link to our Rules page, which has an XML tidy rule that will format the xml into a simlar format.

    Is the issue that you want the xml to be reorganized so that it sorts based on messageid=?
    Aaron P Scooter Software

    Comment


    • #3
      Re: Aligning on variable data

      The two logs are formatted the same way (vs the post in link you provided). I applied the rules but did not notice any difference in the log, how they appeared or how they aligned.

      Below are some snipits. The commands and where they originate (locally or remotely) change, but they are kept track by the sessionID attribute below.

      These examples are sessionID="12018", but the number is different for each request/response pair. I want to align on the same sessionIDs from each log.

      File #1 log
      04:07:13.967 --- player.getPlayerConfig -- 04:07:13 PM -- 10005 11005 12018 ---
      <?xml version="1.0" encoding="utf-8"?>
      <m:s2sMessage xmlns:m="XXX">
      <m:s2sHeader m:fromSystem="XXX" m:toSystem="XXX" m:messageId="10005" m:dateTimeSent="2007-07-29T16:07:13.9671638-05:00" />
      <m:s2sBody>
      <mlayer mropertyId="1" m:dateTime="2007-07-29T16:07:13.9671638-05:00" m:commandId="11005" m:sessionId="12018" m:sessionType="request" m:timeToLive="0" m:sessionRetry="1">
      <m:getPlayerConfig m:clientId="XXX" m:clientType="XXX" />
      </mlayer>
      </m:s2sBody>
      </m:s2sMessage>

      File log 2
      04:08:27.777 --- player.playerConfig -- 04:07:33 PM -- 1002 2002 12018 ---
      <?xml version="1.0" encoding="utf-8"?>
      <m:s2sMessage xmlns:m="XXX">
      <m:s2sHeader m:fromSystem="XXX" m:toSystem="XXX" m:messageId="1002" m:dateTimeSent="2007-07-29T16:07:33.7187500-05:00" />
      <m:s2sBody>
      <mlayer mropertyId="1" m:dateTime="2007-07-29T16:07:33.7187500-05:00" m:commandId="2002" m:sessionId="12018" m:sessionType="response" m:sessionRetry="0">
      <mlayerConfig
      ... bunch of attributes ... />
      </mlayer>
      </m:s2sBody>
      </m:s2sMessage>

      Comment


      • #4
        Re: Aligning on variable data

        Apparently I wasn't correctly applying the TidyXML. With the rule applied each attribute is on it's own line. So now I just need to align on:

        File1
        m:sessionId="12018"

        File2
        m:sessionId="12018"

        I tried variations along sessionID="\d*", but I think that is matching any sessionID and I need to match all specific pairs.

        Comment


        • #5
          Re: Aligning on variable data

          Could you email a couple of example files to support@scootersoftware.com with a brief text description of the problem?

          And nice job troubleshooting that the TidyRule hadn't been working for you.
          Aaron P Scooter Software

          Comment


          • #6
            Re: Aligning on variable data

            Although I certainly appreciate your offer I don't think that would be considered kosher without me doing a lot of editing. I'll try to create something that approximates it.

            Comment

            Working...
            X