Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d-led/proc_to_influxdb
observe windows process starts and stops via influxdb
https://github.com/d-led/proc_to_influxdb
Last synced: 6 days ago
JSON representation
observe windows process starts and stops via influxdb
- Host: GitHub
- URL: https://github.com/d-led/proc_to_influxdb
- Owner: d-led
- License: unlicense
- Created: 2016-10-27T19:20:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-22T21:49:12.000Z (over 6 years ago)
- Last Synced: 2024-08-02T07:10:41.152Z (3 months ago)
- Language: C#
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-influxdb - proc_to_influxdb - Console app to observe Windows process starts and stops via InfluxDB (Collecting data into InfluxDB / Projects)
README
# proc_to_influxdb
> ever wondered what processes are being started and stopped on your machine?
observe windows process starts and stops via [InfluxDB](https://www.influxdata.com/time-series-platform/influxdb/), [influxdb-csharp](https://github.com/influxdata/influxdb-csharp), [WqlEventQuery](), with the code cleaning help of [Reactive Extensions](https://github.com/Reactive-Extensions/Rx.NET).
## query in InfluxDB
after
```
create database processes
```and running the application (requires administration rights)
query:
```
> select * from processes..lifecycle order by time desc limit 10
name: lifecycle
---------------
time event_name host parent_process_id process_id process_name
1477664284913589760 stopped PING2 0 13888 dllhost.exe
1477664283913088768 stopped PING2 0 5344 dllhost.exe
1477664279910585088 stopped PING2 0 7660 nvtray.exe
1477664278912537600 stopped PING2 0 13624 nvtray.exe
1477664278912537344 started PING2 12844 7660 nvtray.exe
1477664278911542016 started PING2 9000 3736 conhost.exe
1477664278911542016 started PING2 948 13888 dllhost.exe
1477664278911542016 started PING2 12664 9000 observable_win_process.exe
1477664278911541760 stopped PING2 0 6028 consent.exe
1477664278910555648 started PING2 948 5344 dllhost.exe
```Example limiting the query to a time frame and a certain process:
```
select * from processes..lifecycle
WHERE time > '2016-10-27T20:21:00Z' AND time < '2016-10-27T20:21:00Z' + 1m
AND process_name = 'git.exe'
```