<?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 Re: Data collector Error in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Data-collector-Error/m-p/720994#M2339</link>
    <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;There are special characters you have to escape e.g commas&lt;/P&gt;&lt;P&gt;A working getter chain would be like&lt;/P&gt;&lt;P&gt;This will also remove the " and just return the number&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;getData().toString().split(customerId": ).[1].split(").[0]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To change your one to a working one it would like below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;getData().toString().split("customerId":).[1].split(\,).[0]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ciao&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 05 Jul 2020 13:46:43 GMT</pubDate>
    <dc:creator>Morelz</dc:creator>
    <dc:date>2020-07-05T13:46:43Z</dc:date>
    <item>
      <title>Data collector Error</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Data-collector-Error/m-p/720993#M2338</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have created a data collector for a particular response to be captured. I want only a certain part of it to be captured and am using the split function. So the response is below&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Success&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"data": {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"customerId": "1128477",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"contactInformation": {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"email": "test_1@test.com",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"mobileCountryCode": "0091",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"mobileNumber": "1234567890"&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;I want to capture the customerId and the data collector I am using is&lt;/P&gt;
&lt;P&gt;getData().toString().split("customerId":).[1].split(,).[0]&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and this gives me output&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[CANNOT EVALUATE: No target specified]&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Am I missing something or doing something wrong? The initial part getData().toString() gives me all the response details but when I try to split it to capture customerId then it gives me the above error. Please help&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Gopikrishnan&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 18:38:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Data-collector-Error/m-p/720993#M2338</guid>
      <dc:creator>Gopi_Krishnan</dc:creator>
      <dc:date>2020-06-23T18:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data collector Error</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Data-collector-Error/m-p/720994#M2339</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;There are special characters you have to escape e.g commas&lt;/P&gt;&lt;P&gt;A working getter chain would be like&lt;/P&gt;&lt;P&gt;This will also remove the " and just return the number&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;getData().toString().split(customerId": ).[1].split(").[0]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To change your one to a working one it would like below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;getData().toString().split("customerId":).[1].split(\,).[0]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ciao&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jul 2020 13:46:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Data-collector-Error/m-p/720994#M2339</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2020-07-05T13:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data collector Error</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Data-collector-Error/m-p/720995#M2340</link>
      <description>&lt;P&gt;Thanks for this.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 10:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Data-collector-Error/m-p/720995#M2340</guid>
      <dc:creator>Gopi_Krishnan</dc:creator>
      <dc:date>2020-07-06T10:21:58Z</dc:date>
    </item>
  </channel>
</rss>

