To provide a control apparatus, a control method, a
monitoring system, and a program which can properly retrieve a predetermined character string.SOLUTION: A control apparatus according to an embodiment of the present invention has: a reception unit for receiving a retrieval formula for use in retrieval of whether or not a specific character string is included in
processing data; a
decomposition unit for, when the specific character string in the retrieval formula includes a
wild card between a character at the
sentence head and a character at the
sentence end, decomposing the specific character string to a head character string located at the
sentence head side as compared with the
wild card and an end character string located at the sentence end side as compared with the
wild card; a result acquiring unit for acquiring a head bit string indicating a result of matching retrieval of a character sting in the
processing data from a sentence head side by using the head character string and an end bit string indicating a result of matching retrieval of the character string in the
processing data from a sentence end side by using the end character string; a logical product unit for executing logical
product processing of the head bit string and the end bit string; and a determination unit for, when the bit string subjected to the logical
product processing has a bit indicating matching of the character string, determining that the specific character string is included in the processing data.SELECTED DRAWING: Figure 2