Removing Log Prefix

Comments

1 comment

  • Kami Richey

    Hi @jimfear

    Your logging endpoint is currently set to our classic message format, but you can change that to blank which will remove the prefix data.

    Here's the link to the guide: https://docs.fastly.com/guides/streaming-logs/changing-log-line-formats

    The API call will be (assuming blank is the message type you wish to use):

    curl -X PUT -H 'Fastly-Key: <your Fastly API key>' -H 'Content-Type: application/json' 'https://api.fastly.com/service/<your Fastly service ID>/version/<version number/logging/<log type>/<log name>' --data-binary '{"message_type":"blank"}'

    The guide has the list of possible values for log type Also, make sure your log name is URL encoded.

    0
    Comment actions Permalink

Please sign in to leave a comment.