Skip to content

Commit

Permalink
HPCC-32699 Encode all ALA response data
Browse files Browse the repository at this point in the history
- Encodes all response log data from ALA

Signed-off-by: Rodrigo Pastrana <[email protected]>
  • Loading branch information
rpastrana committed Sep 26, 2024
1 parent 6d2ccc9 commit 66cdf5c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
21 changes: 21 additions & 0 deletions helm/managed/logging/loki-stack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,24 @@ Example use:
logFormat:
type: "json"
```
#### Baremetal configuration

LogAccess can be configured on baremetal systems as well. It is not a common scenario because baremetal logs continue to be persisted on the local filesystem. Enabling LogAccess on a baremetal system would allow users to fetch remotely stored HPCC logs (not likely related to the host HPCC Systems deployment). To enable, inject a logAccess block with all configuration values properly filled in. The logAccess block can be injected within the Software element in the active environment.xml or within the global element on the esp.xml.

For example:

```
<logAccess name="MyGrafanaLogaccess" type="GrafanaCurl">
<!--username/pass only if secret not available!!-->
<connection protocol="http" port="3000" host="localhost" username="admin" password="xyz"/>
<datasource name="Loki" id="1"/> <!-- Find this info from Grafana: http://localhost:3000/api/datasources/ -->
<namespace name="hpcc"/> <!-- the namespace of the HPCC components which have forwarded logs to grafana -->
<logFormat type="table"/> <!--optional, only needed if HPCC log format set to XML or JSON-->
<logMaps type="global" searchColumn="log" columnMode="DEFAULT" columnType="string"/>
<logMaps type="timestamp" searchColumn="tsNs" columnMode="MIN" storeName="values" columnType="epoch"/>
<!-- logmaps based on streams can be found via http://localhost:3000/api/datasources/proxy/1/loki/api/v1/labels -->
<logMaps type="components" searchColumn="component" columnMode="ALL" storeName="stream" columnType="string"/>
<logMaps type="node" searchColumn="node_name" columnMode="ALL" storeName="stream" columnType="string"/>
<logMaps type="pod" searchColumn="pod" columnMode="DEFAULT" storeName="stream" columnType="string"/>
</logAccess>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Environment>
<global>
<!-- logAccess element should be injected into active environment.xml-->
<logAccess name="grafanalogaccess" type="GrafanaCurl">
<!--username/pass only if secret not available!!-->
<connection protocol="http" port="3000" host="localhost" username="admin" password=""/>
<datasource name="Loki" id="1"/> <!-- Find this info from Grafana: http://localhost:3000/api/datasources/ -->
<namespace name="hpcc"/>
<logFormat type="table"/> <!--optional, only needed if HPCC log format set to XML or JSON-->
<logMaps type="global" searchColumn="log" columnMode="DEFAULT" columnType="string"/>
<logMaps type="timestamp" searchColumn="tsNs" columnMode="MIN" storeName="values" columnType="epoch"/>
<!-- logmaps based on streams can be found via http://localhost:3000/api/datasources/proxy/1/loki/api/v1/labels -->
<logMaps type="components" searchColumn="component" columnMode="ALL" storeName="stream" columnType="string"/>
<logMaps type="node" searchColumn="node_name" columnMode="ALL" storeName="stream" columnType="string"/>
<logMaps type="pod" searchColumn="pod" columnMode="DEFAULT" storeName="stream" columnType="string"/>
</logAccess>
</global>
</Environment>

0 comments on commit 66cdf5c

Please sign in to comment.