thanks @niketn, using max_match=0 worked. here's the final search (turned out i needed callerID, not username):
index="myIndex" sourcetype="conf_cdr_xml" |
eval Conf_Start=strftime(start_time,"%H:%M:%S %m/%d/%y") |
eval Conf_End=strftime(end_time,"%H:%M:%S %m/%d/%y") |
eval Duration = tostring((end_time - start_time), "Duration") |
rex "(?[^<]+)<\/caller_id_name>" max_match=0 |
eventstats count(caller_id_name) as Attendees by Conf_Start |
table confName Conf_Start Conf_End Duration Attendees
An, here's the xml with multiple usernames/callerIDs:
<?xml version="1.0"?>
<cdr>
<conference>
<name>1235551234-101</name>
<hostname>hostname.com</hostname>
<rate>8000</rate>
<interval>20</interval>
<start_time type="UNIX-epoch">1510329526</start_time>
<end_time endconference_forced="false" type="UNIX-epoch">1510329534</end_time>
<members>
<member type="caller">
<join_time type="UNIX-epoch">1510329526</join_time>
<leave_time type="UNIX-epoch">1510329534</leave_time>
<flags>
<is_moderator>true</is_moderator>
<end_conference>true</end_conference>
<was_kicked>false</was_kicked>
<is_ghost>false</is_ghost>
</flags>
<caller_profile>
<username>1235551010</username>
<dialplan>XML</dialplan>
<caller_id_name>Joe Boss</caller_id_name>
<caller_id_number>1235551010</caller_id_number>
<callee_id_name></callee_id_name>
<callee_id_number></callee_id_number>
<ani>1235551010</ani>
<aniii></aniii>
<network_addr>10.0.1.1</network_addr>
<rdnis></rdnis>
<destination_number>1235551234;conf=101;mod;tone=NO_SOUNDS</destination_number>
<uuid>038fa0ce-c630-11e7-938f-b3cdceb36fa4</uuid>
<source>mod_sofia</source>
<context>public</context>
<chan_name>sofia/internal/1235551010@10.10.1.1</chan_name>
</caller_profile>
</member>
<member type="caller">
<join_time type="UNIX-epoch">1510329526</join_time>
<leave_time type="UNIX-epoch">1510329534</leave_time>
<flags>
<is_moderator>true</is_moderator>
<end_conference>true</end_conference>
<was_kicked>false</was_kicked>
<is_ghost>false</is_ghost>
</flags>
<caller_profile>
<username>1235557721</username>
<dialplan>XML</dialplan>
<caller_id_name>Bob</caller_id_name>
<caller_id_number>1235557721</caller_id_number>
<callee_id_name></callee_id_name>
<callee_id_number></callee_id_number>
<ani>1235557721</ani>
<aniii></aniii>
<network_addr>10.0.1.2</network_addr>
<rdnis></rdnis>
<destination_number>1235551234;conf=101;mod;tone=NO_SOUNDS</destination_number>
<uuid>038fa0ce-c630-11e7-938f-b3cdceb36fa4</uuid>
<source>mod_sofia</source>
<context>public</context>
<chan_name>sofia/internal/1235557721@10.10.1.2</chan_name>
</caller_profile>
</member>
</members>
<rejected></rejected>
</conference>
</cdr>
... View more