"transaction.custom.pathname" is already a keyword field in the mapping, I keep creating new index patterns, "transaction.custom.pathname" is always in string format, I do n’t know why.
Kibana picked up your changes correctly - in this list, both keyword and text types are under the "string" umbrella. This is indicated by the green dot in the "Aggregatable" column.
In your first screenshot it's apm-*, in the last one apm*, is it possible you have both index patterns (one up to date, the other one not?). They might match the same data indices, but the saved meta data (like which fields are available) can be different.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.