CONFIGURE SOME LOGS

Open /etc/scalyr-agent-2/agent.json and find the logs section:

Find the following portion of the configuration file:

...
logs: [
    // { path: "/var/log/httpd/access.log", attributes: {parser: "accessLog"} }
 ],
...

Add the path to one of your own logs and choose a name for its parser:

...
logs: [
    // { path: "/var/log/httpd/access.log", attributes: {parser: "accessLog"} }
    {
      path: "/var/log/my_log_file",  attributes: {parser: "myParser"}
    },
 ],
...

Your parser name may be any string containing letters. The rules for this parser may be defined later using the parsers page. You may also use one of the standard parsers such as accessLog. See the standard parser list for more details.