{"action":"closed","issue":{"url":"https://api.github.com/repos/mavam/vast/issues/77","labels_url":"https://api.github.com/repos/mavam/vast/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/mavam/vast/issues/77/comments","events_url":"https://api.github.com/repos/mavam/vast/issues/77/events","html_url":"https://github.com/mavam/vast/issues/77","id":94090423,"number":77,"title":"Make import/export client commands work","user":{"login":"mavam","id":53797,"avatar_url":"https://avatars.githubusercontent.com/u/53797?v=3","gravatar_id":"","url":"https://api.github.com/users/mavam","html_url":"https://github.com/mavam","followers_url":"https://api.github.com/users/mavam/followers","following_url":"https://api.github.com/users/mavam/following{/other_user}","gists_url":"https://api.github.com/users/mavam/gists{/gist_id}","starred_url":"https://api.github.com/users/mavam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavam/subscriptions","organizations_url":"https://api.github.com/users/mavam/orgs","repos_url":"https://api.github.com/users/mavam/repos","events_url":"https://api.github.com/users/mavam/events{/privacy}","received_events_url":"https://api.github.com/users/mavam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mavam/vast/labels/in%20progress","name":"in progress","color":"d7e102"},{"url":"https://api.github.com/repos/mavam/vast/labels/task","name":"task","color":"02d7e1"}],"state":"closed","locked":false,"assignee":{"login":"mavam","id":53797,"avatar_url":"https://avatars.githubusercontent.com/u/53797?v=3","gravatar_id":"","url":"https://api.github.com/users/mavam","html_url":"https://github.com/mavam","followers_url":"https://api.github.com/users/mavam/followers","following_url":"https://api.github.com/users/mavam/following{/other_user}","gists_url":"https://api.github.com/users/mavam/gists{/gist_id}","starred_url":"https://api.github.com/users/mavam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavam/subscriptions","organizations_url":"https://api.github.com/users/mavam/orgs","repos_url":"https://api.github.com/users/mavam/repos","events_url":"https://api.github.com/users/mavam/events{/privacy}","received_events_url":"https://api.github.com/users/mavam/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mavam/vast/milestones/1","html_url":"https://github.com/mavam/vast/milestones/0.1","labels_url":"https://api.github.com/repos/mavam/vast/milestones/1/labels","id":155200,"number":1,"title":"0.1","description":"The initial release of VAST.","creator":{"login":"mavam","id":53797,"avatar_url":"https://avatars.githubusercontent.com/u/53797?v=3","gravatar_id":"","url":"https://api.github.com/users/mavam","html_url":"https://github.com/mavam","followers_url":"https://api.github.com/users/mavam/followers","following_url":"https://api.github.com/users/mavam/following{/other_user}","gists_url":"https://api.github.com/users/mavam/gists{/gist_id}","starred_url":"https://api.github.com/users/mavam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavam/subscriptions","organizations_url":"https://api.github.com/users/mavam/orgs","repos_url":"https://api.github.com/users/mavam/repos","events_url":"https://api.github.com/users/mavam/events{/privacy}","received_events_url":"https://api.github.com/users/mavam/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":42,"state":"open","created_at":"2012-08-01T16:47:20Z","updated_at":"2015-07-24T02:27:11Z","due_on":"2015-08-20T07:00:00Z","closed_at":null},"comments":0,"created_at":"2015-07-09T16:13:56Z","updated_at":"2015-07-24T02:27:11Z","closed_at":"2015-07-24T02:27:11Z","body":"The client commands `vast import` and `vast export` currently do not work yet. This prevents convenient data import/export, e.g.:\r\n\r\n```\r\nzcat *.log.gz | vast import bro\r\nvast import pcap -r trace.pcap\r\n```\r\n\r\nBecause `vast` and `vastd` run as two separate processes, copying data from one process via another involves IPC. To support the most general case where the daemon runs on a separate machine, the communication should use TCP. However, there's a zero-overhead optimization that we can benefit from in case the two processes run on the same box: passing file descriptors over domain sockets. VAST can already use UNIX domain sockets, but the functionality needs to be lifted transparently to the UI. That is, the user should not know whether standard input (i.e., FD 0) gets passed over a UNIX domain socket or whether the input is copied over a TCP connection."}}