Advertisement
Guest User

unix log processing

a guest
Feb 21st, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  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:
  3.  
  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>
  13.  
  14. And the response for the above request is:
  15.  
  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>
  26.  
  27.  
  28. **As you seen above, if the <errNum> is anything apart from 200, then I need to capture that <dataReq>..</dataReq> and <dataRes>..</dataRes>**
  29.  
  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.
  31.  
  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.
  33.  
  34. Please suggest me on this.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement