Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SnakeTail able to tail on Azure file storage #136

Open
mollerhansen opened this issue Oct 17, 2019 · 5 comments
Open

Make SnakeTail able to tail on Azure file storage #136

mollerhansen opened this issue Oct 17, 2019 · 5 comments

Comments

@mollerhansen
Copy link

Problem

We've started to log to Azure file storage, where we use Azure Storage Explorer to open log files, they are downloaded and opened, and thus not tailed.

Solution

Build support for tailing log files on Azure file storage in SnakeTail.

Detail

https://docs.microsoft.com/en-us/azure/storage/files/storage-dotnet-how-to-use-files

@snakefoot
Copy link
Owner

snakefoot commented Oct 17, 2019 via email

@mollerhansen
Copy link
Author

Good question. We use Azure storage explorer today, where we login with our O365 account. Not sure if you can prompt the same way to get credentials, my guess is that its using some sort of REST based web call with OAuth.

@snakefoot
Copy link
Owner

snakefoot commented Oct 21, 2019

Do you create new log files for each day, so tail application has to scan regularly for new files? What is the name-convention of the file-blobs? Using sub-folders?

Sounds like the tail application also need to implement a blob-browser to select the blob-name to tail.

@snakefoot
Copy link
Owner

snakefoot commented Oct 21, 2019

Looks like there is a primary and secondary access key to a blob-storage-account. But it is not recommended to store these keys anywhere. And they are hard to remember by nature, so not easy to type in every time.

Are you using Azure AD to give right to those that have access to Azure Blob Storage Resources:

https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad

@mollerhansen
Copy link
Author

mollerhansen commented Oct 22, 2019

We store the log files over days until some log roll threshold in File Shares probably in and underlying Blob Containers. I connect via the Azure Storage Explorer tool using my AAD (O365) account. I have multiple subscriptions on my account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants