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

enable csv logging without internal-jtimon logging #52

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Conversation

amohit1315
Copy link
Collaborator

@amohit1315 amohit1315 commented Oct 17, 2024

Related Issue(s): #51

  1. fix csv usage without log file in internal-jtimon
  2. rename stateHandler to statsHandler

Tested config:

{
    "host": "10.53.97.126",
    "port": 50051,
    "user": "root",
    "cid": "test",
    "password": "Embe1mpls",
    "internal-jtimon": {
	"csv-log-file": "/root/test_jtimon/CC_TelemetrySensorData.csv"
    },
    "paths": [{
        "path": "/interfaces",
        "freq": 15000
    }],
    "log" : {
        "verbose": true,
	"file" : "/root/test_jtimon/log.txt"
    }
}

Dir contents:

ls -ltr
total 22960
-rw------- 1 root root      376 Oct 17 04:23 config.json
-rwx------ 1 root root 22589774 Oct 17 04:37 jtimon-linux-amd64
-rw------- 1 root root     7315 Oct 17 04:39 CC_TelemetrySensorData.csv
-rw------- 1 root root   903814 Oct 17 04:39 log.txt

@amohit1315 amohit1315 marked this pull request as ready for review October 17, 2024 05:30
@nsimariaj nsimariaj merged commit a566e99 into master Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants