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

Tailing files in sampler #30

Open
vcavallo opened this issue Aug 6, 2019 · 6 comments
Open

Tailing files in sampler #30

vcavallo opened this issue Aug 6, 2019 · 6 comments
Labels
enhancement New feature or request maybe later Non-critical enhancement or suggestion

Comments

@vcavallo
Copy link

vcavallo commented Aug 6, 2019

Hello.

What is the recommended way to tail a file in sampler? Is this supported?

Thanks!

@vcavallo
Copy link
Author

vcavallo commented Aug 6, 2019

update:

this seems to be working..?

textboxes:
  - title: Some Title
    position: [[22, 20], [26, 11]]
    rate-ms: 100
    init: heroku logs -t                                     # this is the tailing command
    sample: stdout                                          # this was a stab in the dark
    border: false
    transform: echo $sample | cut -f 1 -d '#'   # the transform seems to work like this.

@sqshq sqshq added the question Further information is requested label Aug 7, 2019
@sqshq
Copy link
Owner

sqshq commented Aug 10, 2019

If you just want to see a log rolling, you can do tail -n 50 every 100 ms (or heroku logs -n 50):

textboxes:
  - title: logs
    rate-ms: 100
    sample: tail -n 50 my.log

@vcavallo
Copy link
Author

vcavallo commented Aug 10, 2019 via email

@sqshq
Copy link
Owner

sqshq commented Aug 12, 2019

There is no such thing so far, and I wouldn't complicate things at this point. You concern regarding periodic sampling is performance?

@vcavallo
Copy link
Author

vcavallo commented Aug 12, 2019 via email

@sqshq
Copy link
Owner

sqshq commented Aug 13, 2019

I see. Yes, that makes sense. I'll think about it

@sqshq sqshq added enhancement New feature or request maybe later Non-critical enhancement or suggestion and removed question Further information is requested labels Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request maybe later Non-critical enhancement or suggestion
Projects
None yet
Development

No branches or pull requests

2 participants