yc.jsonparser.properties 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. #Yandex Cloud Cloud Trail JSON log parser
  2. #Author: Rodion Chekharin rch@ast-security.ru
  3. trigger.node.location=/
  4. token.count=22
  5. token[0].name=event_id
  6. token[0].type=String
  7. token[0].location=event_id
  8. token[1].name=event_type
  9. token[1].type=String
  10. token[1].location=event_type
  11. token[2].name=event_time
  12. token[2].type=String
  13. token[2].location=event_time
  14. token[3].name=authentication_subject_name
  15. token[3].type=String
  16. token[3].location=authentication//subject_name
  17. token[4].name=authentication_subject_id
  18. token[4].type=String
  19. token[4].location=authentication//subject_id
  20. token[5].name=authentication_subject_type
  21. token[5].type=String
  22. token[5].location=authentication//subject_type
  23. token[6].name=event_source
  24. token[6].type=String
  25. token[6].location=event_source
  26. token[7].name=event_status
  27. token[7].type=String
  28. token[7].location=event_status
  29. token[8].name=request_metadata_remote_address
  30. token[8].type=String
  31. token[8].location=request_metadata//remote_address
  32. token[9].name=request_metadata_user_agent
  33. token[9].type=String
  34. token[9].location=request_metadata//user_agent
  35. token[10].name=request_metadata_request_id
  36. token[10].type=String
  37. token[10].location=request_metadata//request_id
  38. token[11].name=details
  39. token[11].type=String
  40. token[11].format=__uri()
  41. token[11].location=details
  42. token[12].name=authentication_authenticated
  43. token[12].type=String
  44. token[12].location=authentication//authenticated
  45. token[13].name=authorization_authorized
  46. token[13].type=String
  47. token[13].location=authorization//authorized
  48. token[14].name=resource_metadata
  49. token[14].type=String
  50. token[14].format=__uri()
  51. token[14].location=resource_metadata
  52. token[15].name=rm_0_resource_type
  53. token[15].type=String
  54. token[15].location=resource_metadata//path[0]//resource_type
  55. token[16].name=rm_0_resource_id
  56. token[16].type=String
  57. token[16].location=resource_metadata//path[0]//resource_id
  58. token[17].name=rm_0_resource_name
  59. token[17].type=String
  60. token[17].location=resource_metadata//path[0]//resource_name
  61. token[18].name=rm_1_resource_type
  62. token[18].type=String
  63. token[18].location=resource_metadata//path[1]//resource_type
  64. token[19].name=rm_1_resource_id
  65. token[19].type=String
  66. token[19].location=resource_metadata//path[1]//resource_id
  67. token[20].name=rm_1_resource_name
  68. token[20].type=String
  69. token[20].location=resource_metadata//path[1]//resource_name
  70. token[21].name=error_message
  71. token[21].type=String
  72. token[21].location=error//message
  73. event.name=event_type
  74. event.sourceUserName=authentication_subject_name
  75. event.sourceUserId=authentication_subject_id
  76. event.sourceUserPrivileges=authentication_subject_type
  77. event.sourceServiceName=event_source
  78. event.requestClientApplication=request_metadata_user_agent
  79. event.sourceHostName=request_metadata_remote_address
  80. event.requestContext=request_metadata_request_id
  81. event.deviceCustomString1=details
  82. event.deviceCustomString1Label=__stringConstant("details")
  83. event.deviceCustomString2=resource_metadata
  84. event.deviceCustomString2Label=__stringConstant("resource_metadata")
  85. event.deviceCustomString3=authentication_authenticated
  86. event.deviceCustomString3Label=__stringConstant("authenticated")
  87. event.deviceCustomString4=authorization_authorized
  88. event.deviceCustomString4Label=__stringConstant("authorized")
  89. event.deviceCustomString5=event_status
  90. event.deviceCustomString5Label=__stringConstant("event_status")
  91. event.deviceCustomString6=error_message
  92. event.deviceCustomString6Label=__stringConstant("error_message")
  93. event.fileName=rm_0_resource_name
  94. event.filePath=rm_0_resource_id
  95. event.fileType=rm_0_resource_type
  96. event.oldFileName=rm_1_resource_name
  97. event.oldFilePath=rm_1_resource_id
  98. event.oldFileType=rm_1_resource_type
  99. event.endTime=__parseMultipleTimeStamp(__regexTokenFindAndJoin(event_time,"(.*?)T(.*?)\\..*"," ","",""),"yyyy-MM-dd HH:mm:ss")
  100. event.externalId=event_id
  101. event.flexString1=event_time
  102. event.fileId=__regexTokenNoWarning(details,".*?/details/source_uri:\\"(.*?)\\?.*")
  103. event.deviceVendor=__stringConstant("Yandex Cloud")
  104. event.deviceProduct=__stringConstant("Yandex Cloud")