<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Cannot convert a rex pattern variable to use in a chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Cannot-convert-a-rex-pattern-variable-to-use-in-a-chart/m-p/511834#M143513</link>
    <description>&lt;P&gt;I have the following splunk event:&lt;/P&gt;&lt;P&gt;2020-Jul-30 18:19:02.891Z level=DEBUG thread=https-jsse-nio-2720-exec-9 pid=20 code_location=c.x.p.service.WebhookEventServiceImpl request_id=1fPwftTa2ylVm7CbcwnBirNhhjX trace_id=79d2157d38d3fd37 Processing message event[id=WH-29K757251Y0625428-0EP848134S044830M; resourceType=dispute; paypalDebugId=bac532dd23d05] using routingKey[com.xoom.paypal-events.v1.CUSTOMER.DISPUTE.UPDATED].&lt;/P&gt;&lt;P&gt;1. I want to create a chart that aggregates by resourceType and routingKey.&lt;/P&gt;&lt;P&gt;2. I have the following command&lt;/P&gt;&lt;P&gt;index="myindex" sourcetype="mySourceType" "Processing message event" | rex field=instance "routingKey\[(?&amp;lt;eventType&amp;gt;)\]\s" | chart count by resourceType eventType&lt;/P&gt;&lt;P&gt;3. The result I get is just by resourceType. I am not&amp;nbsp; able to assign the &amp;lt;eventType&amp;gt; variable to a field name for the chart.&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="splunk chart" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9974iF959C4D0169317CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="splunk_chart.png" alt="splunk chart" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;splunk chart&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2020 18:37:14 GMT</pubDate>
    <dc:creator>gsbpp</dc:creator>
    <dc:date>2020-07-30T18:37:14Z</dc:date>
    <item>
      <title>Cannot convert a rex pattern variable to use in a chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-convert-a-rex-pattern-variable-to-use-in-a-chart/m-p/511834#M143513</link>
      <description>&lt;P&gt;I have the following splunk event:&lt;/P&gt;&lt;P&gt;2020-Jul-30 18:19:02.891Z level=DEBUG thread=https-jsse-nio-2720-exec-9 pid=20 code_location=c.x.p.service.WebhookEventServiceImpl request_id=1fPwftTa2ylVm7CbcwnBirNhhjX trace_id=79d2157d38d3fd37 Processing message event[id=WH-29K757251Y0625428-0EP848134S044830M; resourceType=dispute; paypalDebugId=bac532dd23d05] using routingKey[com.xoom.paypal-events.v1.CUSTOMER.DISPUTE.UPDATED].&lt;/P&gt;&lt;P&gt;1. I want to create a chart that aggregates by resourceType and routingKey.&lt;/P&gt;&lt;P&gt;2. I have the following command&lt;/P&gt;&lt;P&gt;index="myindex" sourcetype="mySourceType" "Processing message event" | rex field=instance "routingKey\[(?&amp;lt;eventType&amp;gt;)\]\s" | chart count by resourceType eventType&lt;/P&gt;&lt;P&gt;3. The result I get is just by resourceType. I am not&amp;nbsp; able to assign the &amp;lt;eventType&amp;gt; variable to a field name for the chart.&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="splunk chart" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9974iF959C4D0169317CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="splunk_chart.png" alt="splunk chart" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;splunk chart&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 18:37:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-convert-a-rex-pattern-variable-to-use-in-a-chart/m-p/511834#M143513</guid>
      <dc:creator>gsbpp</dc:creator>
      <dc:date>2020-07-30T18:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot convert a rex pattern variable to use in a chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-convert-a-rex-pattern-variable-to-use-in-a-chart/m-p/511837#M143515</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command is trying match against the instance field, but that field doesn't exist in the sample event. Try using&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw ...&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 30 Jul 2020 18:54:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-convert-a-rex-pattern-variable-to-use-in-a-chart/m-p/511837#M143515</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-30T18:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot convert a rex pattern variable to use in a chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-convert-a-rex-pattern-variable-to-use-in-a-chart/m-p/511848#M143521</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;your regex for eventType needs fixing. Please try this&lt;/P&gt;&lt;LI-CODE lang="java"&gt;\[(?&amp;lt;eventType&amp;gt;[^\]]+)&lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 19:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-convert-a-rex-pattern-variable-to-use-in-a-chart/m-p/511848#M143521</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-30T19:45:13Z</dc:date>
    </item>
  </channel>
</rss>

