diff --git a/lib/perfdata/elasticsearchwriter.cpp b/lib/perfdata/elasticsearchwriter.cpp index fdb0b0ce5..4711cd9ac 100644 --- a/lib/perfdata/elasticsearchwriter.cpp +++ b/lib/perfdata/elasticsearchwriter.cpp @@ -358,7 +358,7 @@ void ElasticsearchWriter::Enqueue(const String& type, const Dictionary::Ptr& fie * We do it this way to avoid problems with a near full queue. */ - String indexBody = "{ \"index\" : { \"_type\" : \"" + eventType + "\" } }\n"; + String indexBody = R"({ "index" : { "_type" : ")" + eventType + "\" } }\n"; String fieldsBody = JsonEncode(fields); Log(LogDebug, "ElasticsearchWriter") diff --git a/lib/remote/infohandler.cpp b/lib/remote/infohandler.cpp index c09483692..754948d33 100644 --- a/lib/remote/infohandler.cpp +++ b/lib/remote/infohandler.cpp @@ -98,7 +98,7 @@ bool InfoHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, } else body += "Your user does not have any permissions.
"; - body += "More information about API requests is available in the documentation.