Hi All,
I'm using iRODS audit plugin together with ELK stack and they are working as expected.
Anyway, I noticed that the used disk space is growing due to some big files saved in /var/log/logstash.
These files contain a lot of errors similar to the following one:
[2020-11-02T20:28:32,069][ERROR][logstash.codecs.json ] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unexpected character ('\' (code 92)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (String)"\u0000Sw\xB1\u0000\u0000\u0004\xA7__BEGIN_JSON__{\"proxy_auth_info_ppid\": \"0\", \"pid\": \"73213\", \"time_stamp\": \"1604348912054\", \"user_user_other_info_user_modify\": \"\", \"hostname\": \"icat02.cmcc.scc\", \"std_string\": \"native\", \"rule_name\": \"audit_pep_auth_agent_auth_request_pre\", \"user_auth_info_flag\": \"0\", \"user_user_other_info_user_info\": \"\", \"proxy_user_other_info_user_info\": \"\", \"proxy_rods_zone\": \"idas\", \"user_sys_uid\": \"0\", \"auth_scheme\": \"native"[truncated 881 chars]; line: 1, column: 2]>, :data=>"\\u0000Sw\\xB1\\u0000\\u0000\\u0004\\xA7__BEGIN_JSON__{\\\"proxy_auth_info_ppid\\\": \\\"0\\\", \\\"pid\\\": \\\"73213\\\", \\\"time_stamp\\\": \\\"1604348912054\\\", \\\"user_user_other_info_user_modify\\\": \\\"\\\", \\\"hostname\\\": \\\"icat02.cmcc.scc\\\", \\\"std_string\\\": \\\"native\\\", \\\"rule_name\\\": \\\"audit_pep_auth_agent_auth_request_pre\\\", \\\"user_auth_info_flag\\\": \\\"0\\\", \\\"user_user_other_info_user_info\\\": \\\"\\\", \\\"proxy_user_other_info_user_info\\\": \\\"\\\", \\\"proxy_rods_zone\\\": \\\"idas\\\", \\\"user_sys_uid\\\": \\\"0\\\", \\\"auth_scheme\\\": \\\"native\\\", \\\"proxy_auth_info_host\\\": \\\"\\\", \\\"zone_name\\\": \\\"\\\", \\\"digest\\\": \\\"\\\", \\\"client_addr\\\": \\\"10.0.1.76\\\", \\\"proxy_auth_info_auth_flag\\\": \\\"0\\\", \\\"proxy_user_name\\\": \\\"rods\\\", \\\"proxy_auth_info_auth_scheme\\\": \\\"\\\", \\\"proxy_auth_info_auth_str\\\": \\\"\\\", \\\"proxy_auth_info_flag\\\": \\\"0\\\", \\\"proxy_sys_uid\\\": \\\"0\\\", \\\"proxy_user_other_info_user_comments\\\": \\\"\\\", \\\"proxy_user_other_info_user_create\\\": \\\"\\\", \\\"user_user_name\\\": \\\"rods\\\", \\\"proxy_user_other_info_user_modify\\\": \\\"\\\", \\\"user_user_type\\\": \\\"\\\", \\\"user_auth_info_auth_scheme\\\": \\\"\\\", \\\"proxy_user_type\\\": \\\"\\\", \\\"user_name\\\": \\\"\\\", \\\"user_auth_info_auth_flag\\\": \\\"0\\\", \\\"user_auth_info_auth_str\\\": \\\"\\\", \\\"user_auth_info_host\\\": \\\"\\\", \\\"user_auth_info_ppid\\\": \\\"0\\\", \\\"user_rods_zone\\\": \\\"idas\\\", \\\"user_user_other_info_user_comments\\\": \\\"\\\", \\\"user_user_other_info_user_create\\\": \\\"\\\", \\\"std_string_ptr\\\": \\\"\\\"}__END_JSON__"}
[2020-11-02T20:28:32,069][WARN ][logstash.codecs.json ] Received an event that has a different character encoding than you configured. {:text=>"\\u0000Sw\\xA1y__BEGIN_JSON__{\\\"action\\\": \\\"END\\\", \\\"pid\\\": \\\"73213\\\", \\\"time_stamp\\\": \\\"1604348912067\\\", \\\"hostname\\\": \\\"icat02.cmcc.scc\\\"}__END_JSON__", :expected_charset=>"UTF-8"}
[2020-11-02T20:28:32,069][ERROR][logstash.codecs.json ] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unexpected character ('\' (code 92)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (String)"\u0000Sw\xA1y__BEGIN_JSON__{\"action\": \"END\", \"pid\": \"73213\", \"time_stamp\": \"1604348912067\", \"hostname\": \"icat02.cmcc.scc\"}__END_JSON__"; line: 1, column: 2]>, :data=>"\\u0000Sw\\xA1y__BEGIN_JSON__{\\\"action\\\": \\\"END\\\", \\\"pid\\\": \\\"73213\\\", \\\"time_stamp\\\": \\\"1604348912067\\\", \\\"hostname\\\": \\\"icat02.cmcc.scc\\\"}__END_JSON__"}
Could you please help me to understand where is the error and how can I fix it?
Thank you,
Mauro