Skip to content

Commit

Permalink
HPCC-30571 LogAccessreport log procid by default
Browse files Browse the repository at this point in the history
- Reports procid by default

Signed-off-by: Rodrigo Pastrana <[email protected]>
  • Loading branch information
rpastrana committed Oct 25, 2023
1 parent 33e0b82 commit b830481
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 25 deletions.
3 changes: 1 addition & 2 deletions esp/scm/ws_logaccess.ecm
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ ESPStruct [nil_remove] LogColumn
ESParray<string> EnumeratedValues;
LogSelectColumnMode ColumnMode;
ESPenum LogColumnValueType ColumnType;
[min_ver("1.06")] string Alias;
};

ESPResponse GetLogAccessInfoResponse
Expand Down Expand Up @@ -220,7 +219,7 @@ ESPResponse GetLogsResponse
[min_ver("1.02")] unsigned int TotalLogLinesAvailable;
};

ESPservice [auth_feature("WsLogAccess:READ"), version("1.06"), default_client_version("1.06"), exceptions_inline("xslt/exceptions.xslt")] ws_logaccess
ESPservice [auth_feature("WsLogAccess:READ"), version("1.05"), default_client_version("1.05"), exceptions_inline("xslt/exceptions.xslt")] ws_logaccess
{
ESPmethod GetLogAccessInfo(GetLogAccessInfoRequest, GetLogAccessInfoResponse);
ESPmethod GetLogs(GetLogsRequest, GetLogsResponse);
Expand Down
20 changes: 0 additions & 20 deletions esp/services/ws_logaccess/WsLogAccessService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,26 +71,6 @@ bool Cws_logaccessEx::onGetLogAccessInfo(IEspContext &context, IEspGetLogAccessI
WARNLOG("Invalid col type found in logaccess logmap config");
}
}
if (clientVer >= 1.06)
{
if (column.hasProp("@alias"))
{
try
{
espLogColumn->setAlias(column.queryProp("@alias"));
}
catch (IException *e)
{
VStringBuffer msg("Invalid alias found in logaccess logmap config for '%s'", csearchColumn);
EXCLOG(e, msg.str());
e->Release();
}
catch(...)
{
WARNLOG("Invalid alias found in logaccess logmap config");
}
}
}
logColumns.append(*espLogColumn.getClear());
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ global:
- type: "instance"
storeName: "ContainerInventory"
searchColumn: "Name"
alias: "hpcc_log_component"
projectName: "hpcc_log_component"
columnMode: "ALL"
columnType: "string"
- type: "node"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ void AzureLogAnalyticsCurlClient::getDefaultReturnColumns(StringBuffer & columns
if (includeComponentName)
columns.appendf("%s, ", defaultHPCCLogComponentCol);

columns.appendf("%s, %s, %s, %s, %s, %s, %s",
columns.appendf("%s, %s, %s, %s, %s, %s, %s, %s",
m_globalIndexTimestampField.str(), defaultHPCCLogMessageCol, m_classSearchColName.str(),
m_audienceSearchColName.str(), m_workunitSearchColName.str(), defaultHPCCLogSeqCol, defaultHPCCLogThreadIDCol);
m_audienceSearchColName.str(), m_workunitSearchColName.str(), defaultHPCCLogSeqCol, defaultHPCCLogThreadIDCol, defaultHPCCLogProcIDCol);
}

bool generateHPCCLogColumnstAllColumns(StringBuffer & kql, const char * colName)
Expand Down

0 comments on commit b830481

Please sign in to comment.