mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
Grabbing additional data fields for windows event logs (#3183)
This commit is contained in:
parent
6ba48afef6
commit
e3ebc47498
@ -66,7 +66,9 @@ void parseTree(const pt::ptree& tree, std::map<std::string, std::string>& res) {
|
||||
if (nodeName.empty()) {
|
||||
nodeName = node.first.empty() ? "DataElement" : node.first;
|
||||
}
|
||||
res[nodeName] = node.second.data();
|
||||
res[nodeName] = res[nodeName] == ""
|
||||
? node.second.data()
|
||||
: res[nodeName] + "\r\n" + node.second.data();
|
||||
parseTree(node.second, res);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user