Back to Geneos FAQ

Is there a way to show the time when client login the Active Console?

Screenshot

The value is produced by a rule which calculates the difference between a now function and the connection’s duration value, then converted from epoch time to a human-readable time format. Please see below XML: GWClients sampler:

<sampler name="GWClients">  <plugin>  <Gateway-clientConnectionData></Gateway-clientConnectionData>  </plugin>  <dataviews>  <dataview name="GWClients">  <description></description>  <displayName>loginTime</displayName>  <additions>  <var-columns>  <data>  <column>  <data>loginTime</data>  </column>  </data>  </var-columns>  </additions>  </dataview>  </dataviews> </sampler>

LoginTimes Rule for populating the Time of login:

<rule name="LoginTimes">  <targets>  <target>/geneos/gateway/directory/probe/managedEntity/sampler[(@name=&quot;GWClients&quot;)][(@type=&quot;&quot;)]/dataview[(@name=&quot;GWClients&quot;)]/rows/row/cell[(@column=&quot;loginTime&quot;)]</target>  </targets>  <priority>1</priority>  <pathAliases>  <pathAlias name="DurVar">../cell[(@column=&quot;duration&quot;)]</pathAlias>  </pathAliases>  <evaluateOnDataviewSample>true</evaluateOnDataviewSample>  <block>  <transaction>  <update>  <property>@value</property>  <printDate>  <string>%Y %b %d %H:%M:%S</string>  <subtract>  <now></now>  <multiply>  <dataItem>  <pathAlias ref="DurVar"></pathAlias>  <property>@value</property>  </dataItem>  <integer>60</integer>  </multiply>  </subtract>  </printDate>  </update>  </transaction>  </block> </rule>

You will need to use the gateway connection plugin, and a rule, to achieve this.

["Geneos"] ["Geneos > Active Console"] ["FAQ"]

Was this topic helpful?