---
title: "FKM not picking up the string correctly"
description: "FKM may not pick up strings correctly due to misconfigurations in file source paths, key table settings, permissions, or active time settings. The FAQ provides detailed causes and solutions to verify configurations, permissions, regular expressions, and keyword settings."
url: "https://docs.itrsgroup.com/docs/faq/geneos/4407529994513-geneos-fkm-not-picking-up-the-string-correctly/index.html"
---
## Related to

FKM match key issue, FKM keyword, not finding string.

### Problem

FKM not picking up the string correctly

### Possible Cause(s)

There are numerous reasons why FKM may not pick up the string correctly. In this article, we will summarize some of the common ones.

**Root Cause 1:** Misconfiguration of [file source](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#file-configuration)

- - Common misconfiguration:
    - Incorrect [file path](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#files--file--path) of the file source is supplied
    - Incorrect [files > file > contentType](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#files--file--contenttype) is selected
    - [wildcardMonitorAllMatches](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#wildcardmonitorallmatches) setting is disabled while wildcard is used in the path of file source to monitor more than one file
    - Incorrect format of date keyword is used

**Root Cause 2:** Misconfiguration of the setting of the [key table](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#table-and-key-configuration)

- - Key table contains the actual key definition. Common misconfiguration:
    - Search string
      - - Misspelling of search string
    - Rules
      - - Misconfigured regular expression if the match mode “Regexp” or “Regexp\_ignore\_case” is selected for [fkmTable > keys > key > setKey > match > rules](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#fkmtable--keys--key--setkey--match--rules)

**Root Cause 3:** The user running the NetProbe has no permission to read the file. In such case, “NOT\_FOUND: Permission Denied” status message is shown

**Root Cause 4:** The FKM trigger key is cleared by clear key

**Root Cause 5:** [fkmTable > keys > key > clearTime](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#files--file--cleartime) is set, the trigger row is removed from the dataview after the number of seconds set of clearTime has passed

**Root Cause 6:** Keyword is detected out of the active time if active time is set

**Root Cause 7:** The key is ignored by an ignore key

**Root Cause 8:** Incorrect file content type [files > file > contentType](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#files--file--contenttype) is set

### Possible Solution(s)

Below are the corresponding possible solutions for each of the problems above:

**Solution Root Cause 1:** Any suspected misconfiguration of the file path of file source

- - It can be verified by
    - enable display > columns > Absolute path under the sampler’s advanced tab. This displays the full path to the file including the filename on the dataview
    - use the full path(s) of the file(s) if implicit path using wildcard or date keyword is used and suspected with issue
  - If files > file > source > stream is used, make sure the value must be a **fully qualified stream name**, with the format: managedEntity-name.sampler-name.stream-name

**Solution Root Cause 2:** Issue with match mode set to “Regexp” or “Regexp\_ignore\_case” and problem with regular expression is suspected:

- - verify the regular expression format. For more information on using regular expressions on FKM, see [Regular Expressions](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#regular-expressions)
  - enable / disable Perl Compatible Regular Expressions (PCRE) option. If disabled, FKM uses the Portable Operating System Interface (POSIX) extended regular expressions. Beginning Geneos 5.4.x, the FKM plugin uses PCRE by default. For differences between POSIX and PCRE, see [Notable differences between POSIX and PCRE](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#character-classes)
  - if the regular expression contains a special character that you want to match literally, you will need to use the back slash “\” to escape the character. For the list of the special characters that require escaping for literal match, see [Regular Expressions](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#Heading-regular-expressions)
  - Do not use Negative Regular expressions (A negative pattern in a regular expression that returns matches that are not equal to a specified pattern).

**Solution Root Cause 3:** Make sure the user running the Netprobe has the necessary permissions to the directories and files. In the case of running Windows Netprobe, the Netprobe typically runs as a Windows service as "Local System Account", and this process has no access to mapped drives, only local files are accessible to FKM

**Solution Root Cause 4:** If a file line matches the match key (creating a trigger) and a file line later matches this clear key, the created trigger will be automatically removed

**Solution Root Cause 5:** All triggers of a file are cleared at the defined time of day if a clear time is set

**Solution Root Cause 6:** If active time is used, the place where you set in the sampler configuration impacts when and how the file is read. If a keyword is not picked up, you might have active time set on file-level or keyword table-level. During the time is inactive, file lines are not scanned for the keyword.

**Solution Root Cause 7:** When ignore key is detected, it silently ignores the line which would otherwise match a key and create a trigger

**Solution Root Cause 8:** Make sure the correct file content type [files > file > contentType](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#files--file--contenttype) is set. For more information of possible values of file content type, please see [here](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#files--file--contenttype)

## Related Articles

[File Keyword Monitor (FKM)](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm/index.html#Heading-overview)

[File Keyword Monitor Configuration](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#plugin-configuration)

[Why is the FKM unable to detect some files](https://docs.itrsgroup.com/docs/faq/geneos/115004027969-geneos-fkm-cannot-detect-files/index.html)


