Skip to content

octplane/logdog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log dog

Send any text to datadog log quickly.

Get it!

Usage

Configuration

  • DD_API_KEY in your env. mandatory
  • DD_SITE to target another sire. Defaults to datadoghq.com. Logdog will use intake.logs.${DD_SITE}:10516
  • DD_URL: your base datadog url. Defaults to https://app.datadoghq.com/

Run

> logdog < whatever.log
https://app.datadogh.com/logs? \
   cols=event& \
   index=main& \
   live=true& \
   query=source%3Alog-pipe+service%3Acli-client+session%3Asess[SOMERANDOMNUMBER]& \
   sort=desc& \
   stream_sort=desc

Open the returned url:

Limitations

  • generated URL is very stupid and use hardcoded settings everywhere
  • not very well tested (help me with that)
  • only macOS version for now

Build it

cargo build --release

About

Like a hot dog, but for datadog logs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages