My Lookup Table in Graylog is returning null values for the lookups to my CSV key:value pairs. For this file, I do have the columns “Snacks,” “Calories,” “Sodium,” and “Type of Snack,” but the key value pair I’ve instructed the adapter to look for is just Snacks (the key, and the first column in this CSV), and the value (which would be the Type of Snack, the last column)
The graylog node is able to read the CSV file path (whose path is recognized in the adapter) but the adapter is returning null values for lookups. the permissions are -rw-r–r-- for the CSV file which was added on the graylog node if that makes a difference.
What steps have you already taken to try and solve the problem?
I’ve made sure that my CSV file uses UTF-8 encoding. I’ve also tried playing around with double quotes, or no quotes in the Key: Value space in the adapter, but to no avail. I use Graylog 4.2
Some help with editing the Adapter, or even the CSV file if there are issues with formatting, so that the Lookup Table is correctly able to do lookups against the CSV file.
@patrickmann Thank you for commenting. I haven’t created the pipeline rule yet. That is a prerequisite required before the lookup table will function as expected, if my understanding is correct? I’ll do that and if errors persist, I’ll get a picture of a couple of lines from the CSV file.
Hi @patrickmann so I created the adapter, cache, and the table yet I’m getting a null value when trying to do a lookup on the table ; Here’s a screenshot of my CSV
I’ve made sure that the file is on every graylog server node and is readable. I haven’t included the path in my adapter screenshot, but when I entered it locally, it recognized the path as valid. I’m not sure what the issue could be.