Before I build something, is there a function that works with tabular data, like `top` output from linux? Could not find anything with google, but new to the product so maybe I don't know what to search for yet.
I would look at the Cribl Pack for Nix that can be downloaded at the packs dispensary: https://packs.cribl.io/Specificallys I know it has a route and pipeline for top, because I've talked about it on a webinar in the past.
Okay, cool - haven't been there yet, thanks. It's not top in my case though, it's a specific other function
Cribl Event Breakers understand header-based tabular data like that no problemo.
Hmm not in my case. Had to add a little sed to replace spaces with a tab, then added a little awk while I was there to make it k=v instead
can you post a sample of your top output here?
```ID DC Name Class Drain Eligibility Status0483546f powercloud c-i-0d34e4af61bb5cffb powercloud false ineligible ready69a038fb servers s-i-07f5953ffd6ebe137 servers false eligible ready0bca51fb servers s-i-06410d27d607bb353 servers false eligible ready79e4fdde powercloud c-i-0950b23812f186904 powercloud false eligible readya2189b90 crmi-454 c-i-0b056ef6e2a264e84 crmi-454 false eligible ready02616a7d servers s-i-093fcd647569574c3 servers false eligible readye4aa52ae redis-76 c-i-0057b3383744e1a5a redis-76 false eligible ready```
that works in my tests with your data above
Oh nice, I wasn't aware of this
Did not see it while searching. But I'm still very new so I learn more than a few things every day
Reply
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.