Back to Geneos FAQ

Internal documentation only

This page has been marked as draft.

Rules - How to extract the last modified time of a file and display into a Headline

I want to display the timestamp of the file I’m loading in a headline

Problem Copied

I have a Toolkit that writes to a file, and I want to display the time the file is changed.

Possible solution(s) Copied

To do this, you may get the timestamp of the file via FKM, apply that cell’s path as the path alias and reference a value from a specific path (column/cell) in a dataview using a path alias, and retrieve the actual value from that location for use in the rule evaluation.

Example:

This is the file configured via FKM showing the lastModification time:

Geneos - Rules - How to extract the last modified time of a file and display into a Headline

Right-click this cell and copy the path:

Geneos - Rules - How to extract the last modified time of a file and display into a Headline

In your rule, go to the rule’s Advanced tab and paste the path in the text parameter:

Geneos - Rules - How to extract the last modified time of a file and display into a Headline

For your toolkit, go to the advanced tab and add your headline. The cell should show something like this:

Geneos - Rules - How to extract the last modified time of a file and display into a Headline

Right-click the empty headline and copy the path:

Geneos - Rules - How to extract the last modified time of a file and display into a Headline

After copying, add that path to your Rule’s target, then add the following rule:

Geneos - Rules - How to extract the last modified time of a file and display into a Headline

Rule example:

value path "<yourpathalias" value

Save the changes. Your fileTimestamp should then be reflected.

Geneos - Rules - How to extract the last modified time of a file and display into a Headline

https://support.itrsgroup.com/hc/en-us/articles/115004029789-Geneos-How-do-I-get-the-total-number-of-rows-returned-in-a-rule-rowcount#searchFacets

["Geneos"] ["Geneos > Gateway"] ["FAQ"]

Was this topic helpful?