Skip to content

Logging Create using Windows - Unable to pass format via command line #1363

@JamoCA

Description

@JamoCA

Could the "logger create" functions be updated to "accept a string or file path" for the "format" argument?

I'm using Fastly CLI v10.17.1 (0ce7568) and am having a very difficult time passing the "format" parameter when creating a sumologic log.

I noticed that the "VCL Create" function has a "content" argument that accepts either 1) a string or 2) a file path. The logging "format" argument would benefit by receiving the same treatment since it's impractical (and maybe impossible) to enter when using the Fastly CLI in a Windows environment.

The format payload that I'm using is the one that Sumo Logic recommends using with Fastly.
https://help.sumologic.com/docs/integrations/saas-cloud/fastly/
https://gist.github.com/JamoCA/e3d82dedad9c35a0c1bd3b444e367728

I also tried using the format posted on the Fastly documentation:
https://docs.fastly.com/en/guides/log-streaming-sumologic

No matter what I try and how I escape the string so, the CLI returns an error message.

If you desire more information, I have a Fastly support ticket #863460 open and the person helping me doesn't have an environment, has limited exposure to the CLI and may not be using Windows. I've provided them with complete information, but it seems very basic... except for the hoops required to format the "format" argument.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions