{"action":"opened","issue":{"url":"https://api.github.com/repos/Zatvobor/tirexs/issues/224","repository_url":"https://api.github.com/repos/Zatvobor/tirexs","labels_url":"https://api.github.com/repos/Zatvobor/tirexs/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/Zatvobor/tirexs/issues/224/comments","events_url":"https://api.github.com/repos/Zatvobor/tirexs/issues/224/events","html_url":"https://github.com/Zatvobor/tirexs/issues/224","id":156215700,"number":224,"title":"converting back to list","user":{"login":"henry-hz","id":1010008,"avatar_url":"https://avatars.githubusercontent.com/u/1010008?v=3","gravatar_id":"","url":"https://api.github.com/users/henry-hz","html_url":"https://github.com/henry-hz","followers_url":"https://api.github.com/users/henry-hz/followers","following_url":"https://api.github.com/users/henry-hz/following{/other_user}","gists_url":"https://api.github.com/users/henry-hz/gists{/gist_id}","starred_url":"https://api.github.com/users/henry-hz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henry-hz/subscriptions","organizations_url":"https://api.github.com/users/henry-hz/orgs","repos_url":"https://api.github.com/users/henry-hz/repos","events_url":"https://api.github.com/users/henry-hz/events{/privacy}","received_events_url":"https://api.github.com/users/henry-hz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-23T07:26:52Z","updated_at":"2016-05-23T07:26:52Z","closed_at":null,"body":"Hi there,\r\npls, let me report what seems to be a bug. the pid and node are going to elastic as numerical  list format, even after converting to string.\r\n\r\n```elixir\r\ndefmodule Log do\r\nrequire Timex\r\n@doc \"\"\"\r\n  * module   - the module name where this message comes from \r\n  * level [critical_error, error, warning, info]\r\n  * message  -  whatever you want\r\n  \"\"\"\r\n\r\n\r\n  def log(module, level, message) do\r\n    time = Timex.format!(Timex.DateTime.now, \"{ISO}\")\r\n    pid  = self |> :erlang.pid_to_list  |> List.to_string\r\n    nod  = node |> :erlang.atom_to_list |> List.to_string\r\n    IO.inspect pid\r\n    IO.inspect nod\r\n    Tirexs.HTTP.put(\"/miner4/users/3\", [time: time, level: level, nod: nod, pid: pid, message: message])\r\n    #Tirexs.HTTP.put(\"/miner3/log/2\", [time: time, nodes: \"nodsdf\", pid: \"pid\", module: module, level: level message: message])\r\n  end\r\n\r\nend\r\n```\r\n\r\noutputs:\r\n\r\n```\r\n{\r\n  \"_index\": \"miner2\",\r\n  \"_type\": \"log\",\r\n  \"_id\": \"1\",\r\n  \"_score\": 1,\r\n  \"_source\": {\r\n    \"time\": \"2016-05-23T07:03:15.897+00:00\",\r\n    \"nod\": [\r\n      110,\r\n      111,\r\n      110,\r\n      111,\r\n      100,\r\n      101,\r\n      64,\r\n      110,\r\n      111,\r\n      104,\r\n      111,\r\n      115,\r\n      116\r\n    ],\r\n    \"pid\": [\r\n      60,\r\n      48,\r\n      46,\r\n      50,\r\n      56,\r\n      50,\r\n      46,\r\n      48,\r\n      62\r\n    ],\r\n    \"module\": \"mod\",\r\n    \"level\": \"warning\",\r\n    \"message\": \"hai there\"\r\n  },\r\n  \"fields\": {\r\n    \"time\": [\r\n      1463986995897\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n"}}
{"actor":{"display_login":"henry-hz"}}