<?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: How to add multiple fields to chart count over in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687543#M234492</link>
    <description>&lt;P&gt;It sounds like either client or apiName hasn't been extracted - can you check e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=application_na 
sourcetype=my_logs:hec 
source=my_Logger_PROD  
retrievePayments* 
returncode=Error
| rex field=message "Message=.* \((?&amp;lt;apiName&amp;gt;\w+?) -"
| stats count by client&lt;/LI-CODE&gt;&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=application_na 
sourcetype=my_logs:hec 
source=my_Logger_PROD  
retrievePayments* 
returncode=Error
| rex field=message "Message=.* \((?&amp;lt;apiName&amp;gt;\w+?) -"
| stats count by apiName&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 14 May 2024 22:16:16 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-05-14T22:16:16Z</dc:date>
    <item>
      <title>How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687205#M234387</link>
      <description>&lt;P&gt;This was my original query to get the list of apis that failed for a client. I have more details of the client in the lookup table. How can I extract that in the `chart`.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=application_na 
sourcetype=my_logs:hec 
source=my_Logger_PROD  
retrievePayments* 
returncode=Error
| rex field=message "Message=.* \((?&amp;lt;apiName&amp;gt;\w+?) -" 
| lookup My_Client_Mapping client OUTPUT ClientID ClientName Region 
| chart count over ClientName by apiName&lt;/LI-CODE&gt;&lt;P&gt;This shows the data like&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;ClientName&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;RetrievePaymentsA&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;RetrievePaymentsB&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;RetrievePaymentsC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Client A&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Client B&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="34px"&gt;Client C&lt;/TD&gt;&lt;TD width="25%" height="34px"&gt;5&lt;/TD&gt;&lt;TD width="25%" height="34px"&gt;3&lt;/TD&gt;&lt;TD width="25%" height="34px"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;How can I add other fields to the output like this&lt;/P&gt;&lt;TABLE border="1" width="100.12903225806451%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;ClientId&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;ClientName&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Region&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;RetrievePaymentsA&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;RetrievePaymentsB&lt;/TD&gt;&lt;TD width="16.795698924731184%" height="25px"&gt;RetrievePaymentsC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="16.666666666666668%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="16.666666666666668%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="16.666666666666668%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="16.666666666666668%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="16.795698924731184%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 16:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687205#M234387</guid>
      <dc:creator>kuul13</dc:creator>
      <dc:date>2024-05-10T16:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687209#M234390</link>
      <description>&lt;P&gt;Try doing your lookup after the chart&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=application_na 
sourcetype=my_logs:hec 
source=my_Logger_PROD  
retrievePayments* 
returncode=Error
| rex field=message "Message=.* \((?&amp;lt;apiName&amp;gt;\w+?) -" 
| chart count over client by apiName
| lookup My_Client_Mapping client OUTPUT ClientID ClientName Region &lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 May 2024 17:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687209#M234390</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-10T17:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687217#M234391</link>
      <description>&lt;P&gt;Moving lookup after chart fetch nothing.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 18:41:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687217#M234391</guid>
      <dc:creator>kuul13</dc:creator>
      <dc:date>2024-05-10T18:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687219#M234392</link>
      <description>&lt;P&gt;Did you just move your lookup or did you adjust field names as well?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 19:39:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687219#M234392</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-05-10T19:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687237#M234405</link>
      <description>&lt;P&gt;Please share the complete search which is not working.&lt;/P&gt;&lt;P&gt;Also, please include some representative anonymised sample events so we can see what you are dealing with.&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 07:57:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687237#M234405</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-11T07:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687262#M234410</link>
      <description>&lt;P&gt;I have moved the lookup statement to the end after chart. Here is the latest query that I used. After I move the lookup at the end, I see no data.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=application_na 
sourcetype=my_logs:hec 
source=my_Logger_PROD  
retrievePayments* 
| rex field=message "Message=.* \((?&amp;lt;apiName&amp;gt;\w+?) -" 
| chart count over client by apiName
| lookup My_Client_Mapping client OUTPUT ClientID ClientName Region &lt;/LI-CODE&gt;&lt;P&gt;Here is the sample events that I am working with, if that helps:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Time&lt;/TD&gt;&lt;TD width="50%"&gt;Event&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;&lt;SPAN&gt;4/27/24&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5:30:37.182 AM&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="50%"&gt;{&lt;BR /&gt;"client":"ClientA",&lt;BR /&gt;"msgtype":"WebService",&lt;BR /&gt;"priority":2,&lt;BR /&gt;"interactionid":"1DD6AA27-6517-4D62-84C1-C58CA124516C",&lt;BR /&gt;"seq":15831,&lt;BR /&gt;"threadid":23,&lt;BR /&gt;"message":"TimeMarker: WebService: Sending result @110ms. (retrievePaymentsXY - ID1:123 ID2:ClientId|1 ID3:01/27/2024-04/27/2024)",&lt;BR /&gt;"userid":"Unknown"&lt;BR /&gt;}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My_Client_Mapping lookup table has details of my clients like&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%"&gt;Client&lt;/TD&gt;&lt;TD width="25%"&gt;ClientId&lt;/TD&gt;&lt;TD width="25%"&gt;ClientName&lt;/TD&gt;&lt;TD width="25%"&gt;Region&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ClientA&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Client A&lt;/TD&gt;&lt;TD&gt;Eastern&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ClientB&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Client B&lt;/TD&gt;&lt;TD&gt;Eastern&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ClientC&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Client C&lt;/TD&gt;&lt;TD&gt;Western&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 20:34:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687262#M234410</guid>
      <dc:creator>kuul13</dc:creator>
      <dc:date>2024-05-11T20:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687271#M234412</link>
      <description>&lt;P&gt;The event you have chosen to show does not match "Message=.*" so you won't get apiName extracted, therefore your chart will return no results (at least for this event).&lt;/P&gt;&lt;P&gt;Your lookup appears to use "Client" as a field name, whereas your event appears to use "client" - fieldnames are case sensitive so these are two different fields.&lt;/P&gt;&lt;P&gt;I hope this helps you resolve your issue.&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2024 09:00:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687271#M234412</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-12T09:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687396#M234448</link>
      <description>&lt;P&gt;My bad, sorry that while I was removing the sensitive data, I messed up the event. Here is the actual one that I used:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;Client:ClientA,&lt;BR /&gt;Msgtype:WebService,&lt;BR /&gt;Priority:2,&lt;BR /&gt;Interactionid:1DD6AA27-6517-4D62-84C1-C58CA124516C,&lt;BR /&gt;Seq:15831,&lt;BR /&gt;Threadid:23,&lt;BR /&gt;message: TimeMarker: MyClient: Result=Success Time=0000.05s Message=No payments found. (RetrievePaymentsXY - ID1:123131 ID2:Site|12313 ID3:05/14/2024-07/12/2024 1|12313),&lt;BR /&gt;Userid:Unknown&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;And, the regex works too, here is the working example that would extract the apiName:&lt;/P&gt;&lt;P&gt;&lt;A href="https://regex101.com/r/7f9Cnb/1" target="_blank"&gt;https://regex101.com/r/7f9Cnb/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 02:37:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687396#M234448</guid>
      <dc:creator>kuul13</dc:creator>
      <dc:date>2024-05-14T02:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687435#M234453</link>
      <description>&lt;P&gt;Ugh. This looks &lt;EM&gt;almost&lt;/EM&gt; like a json structure. Unfortunately your keys and values are not enclosed in quotes so it is &lt;EM&gt;not&lt;/EM&gt; a valid json object. If it were a json object you wouldn't have to worry about regexes because splunk can parse jsons.&lt;/P&gt;&lt;P&gt;And it's best to let it do so instead of trying to fiddle with regexes to handle structured data.&lt;/P&gt;&lt;P&gt;EDIT: OK, earlier you showed some representation of your event and it did include the quotes. So how is it?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 08:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687435#M234453</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-05-14T08:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687442#M234456</link>
      <description>&lt;P&gt;So, does the search work without the lookup?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 09:14:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687442#M234456</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-14T09:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687468#M234460</link>
      <description>&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Time&lt;/TD&gt;&lt;TD width="50%"&gt;Event&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;&lt;SPAN&gt;4/27/24&lt;/SPAN&gt;&lt;SPAN&gt;5:30:37.182 AM&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="50%"&gt;{&lt;BR /&gt;"Client":"ClientA",&lt;BR /&gt;"Msgtype":"WebService",&lt;BR /&gt;"Priority":2,&lt;BR /&gt;"Interactionid":"1DD6AA27-6517-4D62-84C1-C58CA124516C",&lt;BR /&gt;"Seq":15831,&lt;BR /&gt;"Threadid":23,&lt;BR /&gt;"message":"&lt;SPAN&gt;TimeMarker: MyClient: Result=Success Time=0000.05s Message=No payments found. (RetrievePaymentsXY - ID1:123131 ID2:Site|12313 ID3:05/14/2024-07/12/2024 1|12313&lt;/SPAN&gt;",&lt;BR /&gt;"Userid":"Unknown"&lt;BR /&gt;}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to make sure that I state it right, when I run the following query, I get an output already, so json and fields are all correct. It is just my json was messed up when I massaged it (please ignore) :&lt;/P&gt;&lt;PRE&gt;index=application_na 
sourcetype=my_logs:hec 
source=my_Logger_PROD  
retrievePayments* 
returncode=Error
| rex field=message "Message=.* \((?&amp;lt;apiName&amp;gt;\w+?) -" 
| lookup My_Client_Mapping Client OUTPUT ClientID ClientName Region 
| chart count over ClientName by apiName&lt;/PRE&gt;&lt;P&gt;where `chart count over` is at the end. But, when I move the `lookup` statement after `chart`, I don't get any data back.&lt;/P&gt;&lt;P&gt;If I remove the `lookup` the query won't work as `ClientName` is stored in lookup mapping file.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 13:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687468#M234460</guid>
      <dc:creator>kuul13</dc:creator>
      <dc:date>2024-05-14T13:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687495#M234468</link>
      <description>&lt;P&gt;What do you get when you try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=application_na 
sourcetype=my_logs:hec 
source=my_Logger_PROD  
retrievePayments* 
returncode=Error
| rex field=message "Message=.* \((?&amp;lt;apiName&amp;gt;\w+?) -" 
| chart count over client by apiName&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 May 2024 14:32:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687495#M234468</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-14T14:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687534#M234490</link>
      <description>&lt;P&gt;It says `&lt;SPAN&gt;No results found.`&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 19:44:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687534#M234490</guid>
      <dc:creator>kuul13</dc:creator>
      <dc:date>2024-05-14T19:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687543#M234492</link>
      <description>&lt;P&gt;It sounds like either client or apiName hasn't been extracted - can you check e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=application_na 
sourcetype=my_logs:hec 
source=my_Logger_PROD  
retrievePayments* 
returncode=Error
| rex field=message "Message=.* \((?&amp;lt;apiName&amp;gt;\w+?) -"
| stats count by client&lt;/LI-CODE&gt;&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=application_na 
sourcetype=my_logs:hec 
source=my_Logger_PROD  
retrievePayments* 
returncode=Error
| rex field=message "Message=.* \((?&amp;lt;apiName&amp;gt;\w+?) -"
| stats count by apiName&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 May 2024 22:16:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687543#M234492</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-14T22:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple fields to chart count over</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687565#M234504</link>
      <description>&lt;P&gt;OK. The proper (and actually the only reasonable I thkink) approach to diagnose "not working" SPL searches is to start from the start and add one step at a time verifying if you're getting desired results at each step of the way.&lt;/P&gt;&lt;P&gt;So first do&lt;/P&gt;&lt;PRE&gt;index=application_na 
sourcetype=my_logs:hec 
source=my_Logger_PROD  
retrievePayments* 
returncode=Error&lt;/PRE&gt;&lt;P&gt;and see if you get any results returned at all.&lt;/P&gt;&lt;P&gt;Then add&lt;/P&gt;&lt;PRE&gt;| rex field=message "Message=.* \((?&amp;lt;apiName&amp;gt;\w+?) -" &lt;/PRE&gt;&lt;P&gt;And verify that your &lt;EM&gt;apiName&lt;/EM&gt; field is properly extracted.&lt;/P&gt;&lt;P&gt;Then apply&lt;/P&gt;&lt;PRE&gt;| lookup My_Client_Mapping Client OUTPUT ClientID ClientName Region &lt;/PRE&gt;&lt;P&gt;and see if the values from the lookup are properly assigned.&lt;/P&gt;&lt;P&gt;If any of those steps fails to produce predicted results, you'll know which step to debug.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 06:22:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-multiple-fields-to-chart-count-over/m-p/687565#M234504</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-05-15T06:22:04Z</dc:date>
    </item>
  </channel>
</rss>

