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

[ygrok] Patterns for vmstat, df, du, ps #116

Open
5 of 14 tasks
preaction opened this issue Jan 29, 2015 · 4 comments
Open
5 of 14 tasks

[ygrok] Patterns for vmstat, df, du, ps #116

preaction opened this issue Jan 29, 2015 · 4 comments
Labels

Comments

@preaction
Copy link
Owner

The core utils should have built-in grok patterns.

This is how we make workflows from common unix tools!

Possibilities:

  • ls -l
  • ps
    • ps
    • ps x
    • ps u
  • vmstat
  • df -P (POSIX output)
    • Allow multiline groks so we don't need the -P flag?
  • du
    • Kind of useless, but who knows?
    • the standard unix tools already work well here
  • netstat
  • lsof

Perhaps we also want patterns for common unix files like:

  • /etc/passwd
  • /etc/mtab
  • /etc/fstab
  • /etc/hosts
    • Allow a repeated pattern for an array of things?

So the idea here is that we can build a workflow based on these tools, moving data from them to a database, or over a messaging layer to some alerting tool.

@preaction
Copy link
Owner Author

Perhaps we add these to "POSIX" namespace?

@preaction
Copy link
Owner Author

Not all of this is POSIX, but when it is, put it in the POSIX namespace. Namespaces are great!

@preaction
Copy link
Owner Author

Straight ps differs from OSX and OpenBSD, but ps u and ps x does not. I didn't test any GNU systems.

preaction added a commit that referenced this issue Feb 2, 2015
This was only tested on OSX, so I don't know if this is truly
POSIX-compliant. This is just a beginning. If we have OSX- or BSD- or
GNU-specific variants, we can add those categories.

Refs #116
@preaction
Copy link
Owner Author

procps is what has iostat, vmstat, and a new one i've never seen before, mpstat, which looks like it could be very nice for machine statistics.

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

No branches or pull requests

1 participant