I am trying to post log info to slack and some of these logs can get pretty big. Is there a way to send it as a snippet so that slack doesn't chunk the text into multiple messages?
You can post a snippet to a Slack channel using the API method files.upload.
In order for this to work you need to:
content
(not the file
) parameter to upload the content of
your file.channels
parameter where the
snippet should be posted.filetype
is optional. Slack will determine the type of your
file based on the filename or "magic bytes" of the file. e.g. using
text
as filetype
will work.