SpiderLabs / modsecurity-mlogc-ng

Next generation remote logging tool for ModSecurity, supporting native and JSON format.
21 stars 9 forks source link

Problem creating pipe element: transform_to_json #2

Open 2knarf opened 8 years ago

2knarf commented 8 years ago

Hi, anyone

root@webwash01:~/modsecurity-mlogc-ng# ./mlogc-ng mlog-new.frank configuration.c:80:read_configuration_file(): Problem creating pipe element: transform_to_json mlogc-ng.c:53:main(): Problems reading the configuration file: mlog-new.frank

root@webwash01:~/modsecurity-mlogc-ng# cat mlog-new.frank {
"mlogc_pipeline":[
{
"read_from_filesystem":{
"directory":"/var/asl/data/audit" } }, {
"transform_to_json":{

  }
},
{  
  "send_to_server":{  
    "host":"http://ls01.x.no:31311",
    "username":"frank",
    "password":"x",
    "validate_certificate_chain":"false",
    "number_of_clients": 10
  }
},
{
  "dump": {
    "id": "true",
    "audit_file": "true"
  }
}

] }

zimmerle commented 8 years ago

Hi @2knarf,

You may want to have a look at the JSON native support on ModSecurity:

https://github.com/SpiderLabs/ModSecurity/tree/pull_request_914

It will be released as part of ModSecurity version 2.9.1.

Please copy and paste your JSON into gits, so we can make sure that it was not broken by the Markdown.