「pione log format」の版間の差分
提供: Eospedia
行72: | 行72: | ||
<pre> | <pre> | ||
− | $ pione log format pione-process.log | + | $ pione log format pione-process.log |
<?xml version='1.0'?> | <?xml version='1.0'?> | ||
<log xes.version='1.4' xes.features='nested-attributes' openxes.version='1.0RC7' xmlns='http://www.xes-standard.org/'> | <log xes.version='1.4' xes.features='nested-attributes' openxes.version='1.0RC7' xmlns='http://www.xes-standard.org/'> | ||
行85: | 行85: | ||
<string key='concept:name' value='PIONE process log'/> | <string key='concept:name' value='PIONE process log'/> | ||
<trace> | <trace> | ||
+ | <string key='pione:traceType' value='agent_activity'/> | ||
+ | <id key='identity:id' value='7b6ce82a-9e6a-4082-8d09-f30d962b1987'/> | ||
+ | <event> | ||
+ | <string key='concept:name' value='init'/> | ||
+ | <string key='org:resource' value='input_generator'/> | ||
+ | <date key='time:timestamp' value='2014-12-22T11:48:13.001+09:00'/> | ||
+ | <string key='lifecycle:transition' value='start'/> | ||
+ | </event> | ||
+ | <event> | ||
+ | <string key='concept:name' value='init'/> | ||
+ | <string key='org:resource' value='input_generator'/> | ||
+ | <date key='time:timestamp' value='2014-12-22T11:48:13.001+09:00'/> | ||
+ | <string key='lifecycle:transition' value='complete'/> | ||
+ | </event> | ||
-中略- | -中略- | ||
+ | <trace> | ||
+ | <string key='concept:name' value='task process 14fd9012-294b-4596-8989-46bb4ca3a95f'/> | ||
+ | <string key='pione:traceType' value='task_process'/> | ||
<event> | <event> | ||
<string key='concept:name' value='&Anonymous:Root([],{})'/> | <string key='concept:name' value='&Anonymous:Root([],{})'/> | ||
− | <date key='time:timestamp' value='2014-12-22T11: | + | <date key='time:timestamp' value='2014-12-22T11:48:13.105+09:00'/> |
− | <string key='lifecycle:transition' value=' | + | <string key='lifecycle:transition' value='start'/> |
<string key='pione:ruleType' value='flow'/> | <string key='pione:ruleType' value='flow'/> | ||
<string key='pione:inputs' value=''/> | <string key='pione:inputs' value=''/> | ||
行97: | 行114: | ||
</event> | </event> | ||
<event> | <event> | ||
− | <string key='concept:name' value='&Anonymous: | + | <string key='concept:name' value='&Anonymous:Root([],{})'/> |
− | <date key='time:timestamp' value='2014-12-22T11: | + | <date key='time:timestamp' value='2014-12-22T11:48:13.115+09:00'/> |
<string key='lifecycle:transition' value='complete'/> | <string key='lifecycle:transition' value='complete'/> | ||
− | <string key='pione:ruleType' value=' | + | <string key='pione:ruleType' value='flow'/> |
<string key='pione:inputs' value=''/> | <string key='pione:inputs' value=''/> | ||
− | <string key='pione:parameters' value='{ | + | <string key='pione:parameters' value='{}'/> |
</event> | </event> | ||
</trace> | </trace> | ||
行114: | 行131: | ||
$ pione log format pione-process.log > pione-process.xes | $ pione log format pione-process.log > pione-process.xes | ||
</pre> | </pre> | ||
+ | <br> | ||
+ | |||
+ | === オプション --log-id === | ||
+ | [[pione log list-id]]で出力されるIDから選択することで出力するログを指定することができます。<br> | ||
+ | <br> | ||
+ | |||
+ | <pre> | ||
+ | $ pione log format pione-process.log --log-id "2014-12-22T11:33:53.016+09:00" | ||
+ | <?xml version='1.0'?> | ||
+ | <log xes.version='1.4' xes.features='nested-attributes' openxes.version='1.0RC7' xmlns='http://www.xes-standard.org/'> | ||
+ | <extension name='Concept' prefix='concept' uri='http://www.xes-standard.org/concept.xesext'/> | ||
+ | <extension name='Identity' prefix='identity' uri='http://www.xes-standard.org/identity.xesext'/> | ||
+ | <extension name='Time' prefix='time' uri='http://www.xes-standard.org/time.xesext'/> | ||
+ | <extension name='Lifecycle' prefix='lifecycle' uri='http://www.xes-standard.org/lifecycle.xesext'/> | ||
+ | <extension name='Organizational' prefix='org' uri='http://www.xes-standard.org/org.xesext'/> | ||
+ | <classifier name='MXML Legacy Classifier' keys='concept:name lifecycle:transition'/> | ||
+ | <classifier name='Event Name' keys='concept:name'/> | ||
+ | <classifier name='Resource' keys='org:resource'/> | ||
+ | <string key='concept:name' value='PIONE process log'/> | ||
+ | <trace> | ||
+ | <string key='pione:traceType' value='agent_activity'/> | ||
+ | <id key='identity:id' value='4829ddd4-e931-4daf-8131-466238d52ad7'/> | ||
+ | <event> | ||
+ | <string key='concept:name' value='init'/> | ||
+ | <string key='org:resource' value='input_generator'/> | ||
+ | <date key='time:timestamp' value='2014-12-22T11:33:53.032+09:00'/> | ||
+ | <string key='lifecycle:transition' value='start'/> | ||
+ | </event> | ||
+ | <event> | ||
+ | <string key='concept:name' value='stop_iteration'/> | ||
+ | <string key='org:resource' value='input_generator'/> | ||
+ | <date key='time:timestamp' value='2014-12-22T11:33:53.033+09:00'/> | ||
+ | <string key='lifecycle:transition' value='start'/> | ||
+ | </event> | ||
+ | |||
+ | -中略- | ||
+ | |||
+ | <event> | ||
+ | <string key='concept:name' value='&Anonymous:Root([],{})'/> | ||
+ | <date key='time:timestamp' value='2014-12-22T11:33:53.835+09:00'/> | ||
+ | <string key='lifecycle:transition' value='complete'/> | ||
+ | <string key='pione:ruleType' value='flow'/> | ||
+ | <string key='pione:inputs' value=''/> | ||
+ | <string key='pione:parameters' value='{}'/> | ||
+ | </event> | ||
+ | <event> | ||
+ | <string key='concept:name' value='&Anonymous:Main([],{})'/> | ||
+ | <date key='time:timestamp' value='2014-12-22T11:33:53.851+09:00'/> | ||
+ | <string key='lifecycle:transition' value='complete'/> | ||
+ | <string key='pione:ruleType' value='action'/> | ||
+ | <string key='pione:inputs' value=''/> | ||
+ | <string key='pione:parameters' value='{O:<(<i>1)=>(<d>'message.txt')>}'/> | ||
+ | </event> | ||
+ | </trace> | ||
+ | </log> | ||
+ | </pre> | ||
+ | 他のIDのログが出力されています。<br> | ||
<br> | <br> |
2014年12月22日 (月) 02:58時点における版
pione log formatとはログを別のフォーマットとして変換するPIONEのコマンドです。
オプション一覧
オプション | 型 | デフォルト | 説明 |
---|---|---|---|
引数 | location | 必須 | ログファイルの場所 |
--agent-type | NAME | 全てのエージェント | 出力するエージェント名: "task_worker", "input_generator", ... |
--format | NAME | xes | フォーマット: xes, json, xml(現状はxesのみ) |
--log-id | ID | 全てのID | 出力するID: (参照: pione log list-id) |
--trace-type | NAME | 全てのトレース | 出力するトレース: "agent", "rule", or "task" |
--color | BOOLEAN | true | 出力結果の文字に色を付ける |
--debug | [TYPE] | system | デバッグモードで実行 |
-h | [FORMAT] | txt | ヘルプを表示 |
-v | なし | なし | バージョンを表示 |