Ledger Nano X - The secure hardware wallet

unix log processing

a guest Feb 21st, 2018 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. I have a requirement to read from a continuously running logs which refreshes in milliseconds, because 1000's of people will be accessing in each and every minute.
  2. My requirement is:
  4. Suppose there is an xml request like this:
  5. <dataReq>
  6.   <id>1</id>
  7.   <name>test</name>
  8.   <reqId>ddaabyy234</reqid>
  9.    ....
  10.    ...
  11.    ....
  12. </dataReq>
  14. And the response for the above request is:
  16. <dataRes>
  17.    <id>1</id>
  18.    <dept>railway</dept>
  19.    <reqId>ddaabyy234</reqid>
  20.    .......
  21.    .......
  22.    <errcode>
  23.        <errNum>404</errNum>
  24.    </errcode>
  25.  </dataRes>
  28.  **As you seen above, if the <errNum> is anything apart from 200, then I need to capture that <dataReq>..</dataReq> and <dataRes>..</dataRes>**
  30. The problem here is, there can be multiple <dataReq>...</dataReq> tags. Because, inorder to genererate a response it will take some time for the backend systems and in the meanwhile many users will be sending their requests from webUI (or) mobile (or) apps to the same application.
  32. The log will also be getting archived into archived files every 5 minutes as the log file  will be growing its size to huge withing every 5 minutes.
  34. Please suggest me on this.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand