pfsense_24.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "extractors": [
  3. {
  4. "title": "pfSense filterlog: IPv4 TCP",
  5. "extractor_type": "regex",
  6. "converters": [
  7. {
  8. "type": "csv",
  9. "config": {
  10. "trim_leading_whitespace": false,
  11. "column_header": "RuleNumber,SubRuleNumber,Anchor,Tracker,Interface,Reason,Action,Direction,IPVersion,TOS,ECN,TTL,ID,Offset,Flags,ProtocolID,Protocol,Length,SourceIP,DestIP,SourcePort,DestPort,DataLength,TCPFlags,Sequence,ACK,Window,URG,Options",
  12. "strict_quotes": false
  13. }
  14. }
  15. ],
  16. "order": 0,
  17. "cursor_strategy": "copy",
  18. "source_field": "message",
  19. "target_field": "FilterData",
  20. "extractor_config": {
  21. "regex_value": "^.*filterlog:(.*)$"
  22. },
  23. "condition_type": "regex",
  24. "condition_value": "^.*filterlog:(.*),(in|out),4,.*,tcp,.*$"
  25. },
  26. {
  27. "title": "pfSense filterlog: IPv4 UDP",
  28. "extractor_type": "regex",
  29. "converters": [
  30. {
  31. "type": "csv",
  32. "config": {
  33. "trim_leading_whitespace": false,
  34. "column_header": "RuleNumber,SubRuleNumber,Anchor,Tracker,Interface,Reason,Action,Direction,IPVersion,TOS,ECN,TTL,ID,Offset,Flags,ProtocolID,Protocol,Length,SourceIP,DestIP,SourcePort,DestPort,DataLength",
  35. "strict_quotes": false
  36. }
  37. }
  38. ],
  39. "order": 0,
  40. "cursor_strategy": "copy",
  41. "source_field": "message",
  42. "target_field": "FilterData",
  43. "extractor_config": {
  44. "regex_value": "^.*filterlog:(.*)$"
  45. },
  46. "condition_type": "regex",
  47. "condition_value": "^.*filterlog:(.*),(in|out),4,.*,udp,.*$"
  48. }
  49. ],
  50. "version": "4.0.2"
  51. }