Beginners issue - improperly formatted jvm option

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
latest

Describe the issue:

setting up my first greylog server on ubuntu 22.04, this is all new to me, so I apologize if this is something that should be simple.

when running sudo systemctl status opensearch.service

I get the error:
Dec 20 14:19:26 greylog1 systemd-entrypoint[19181]: [1]: encountered improperly formatted JVM option in [/etc/opensearch/jvm.options] on line number [94]: [sudo nano /etc/opensearch/jvm.options]
Dec 20 14:19:26 greylog systemd[1]: opensearch.service: Main process exited, code=exited, status=1/FAILURE
Dec 20 14:19:26 greylog systemd[1]: opensearch.service: Failed with result ‘exit-code’.
Dec 20 14:19:26 greylog systemd[1]: Failed to start OpenSearch.
Dec 20 14:19:26 greylog systemd[1]: opensearch.service: Consumed 1.710s CPU time.

I then do : sudo nano /etc/opensearch/jvm.options
and on line 94 I find:

(94)-Djava.security.policy=file:///etc/opensearch/opensearch-performance-analyzer/opensearch_security.policy
–add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED
-Xms1g
-Xmx1g

does anyone see the actual issue, or can translate it for me?

Configuration:

Relevant Logs or Screenshots:

Thish should be your Java Security Manager policy file. Can you check if the file exists and if it does, maybe remove the file:// part? Although it looks completely legal as far as I can tell.

In my docker OpenSearch I see this in my jvm.options file:

-Djava.security.policy=/usr/share/opensearch/config/opensearch-performance-analyzer/opensearch_security.policy