<?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: Splunk Append Query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677438#M231654</link>
    <description>&lt;P&gt;Your regex do not match your sample events, for example, the logger1 regex could look like this (assuming your example event is accurate):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\&amp;lt;LoggerName\d\&amp;gt;\|(?&amp;lt;time&amp;gt;\w+)\|(?&amp;lt;Service&amp;gt;\w+)\|(?&amp;lt;Type&amp;gt;\w+)\|(?&amp;lt;brand&amp;gt;\w+)\|(?&amp;lt;template&amp;gt;\w+)\|(?&amp;lt;hashId&amp;gt;[\w-]+)\|(?&amp;lt;Code&amp;gt;\w+)"&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 13 Feb 2024 16:33:37 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-02-13T16:33:37Z</dc:date>
    <item>
      <title>Splunk Append Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677402#M231634</link>
      <description>&lt;P&gt;I am using the below query to merge 2 queries using append. However, I am unable to get the value of the field named "&lt;STRONG&gt;Code&lt;/STRONG&gt;" from the first query under&amp;nbsp;&lt;STRONG&gt;| search "Some Logger"&lt;/STRONG&gt;&amp;nbsp;printed in the Statistics section:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=*
sourcetype=*
host=*
| search "Some Logger"
| rex "LoggerName\|(?&amp;lt;time&amp;gt;\w+)\|(?&amp;lt;Service&amp;gt;\w+)\|(?&amp;lt;Type&amp;gt;\w+)\|(?&amp;lt;brand&amp;gt;\w+)\|(?&amp;lt;template&amp;gt;\w+)\|(?&amp;lt;hashId&amp;gt;[\w-]+)\|(?&amp;lt;Code&amp;gt;\w+)"
| table Code
| append
[ search
host=*
| search "LoggerName2*"
| rex field=_raw "field1=(?&amp;lt;field1&amp;gt;)\}"
| rex field=_raw "field2=(?&amp;lt;field2&amp;gt;),"
| rex field=_raw "field3=(?&amp;lt;field3&amp;gt;[a-zA-z-_0-9\\s]*)"
| rex field=_raw "(?&amp;lt;field4&amp;gt;[\w-]+)$"
| rex field=_raw "field5=(?&amp;lt;field5&amp;gt;),"
| rex field=_raw "field6=(?&amp;lt;field6&amp;gt;),"
| table field1,field2
]&lt;/LI-CODE&gt;
&lt;P&gt;The result from the 2nd/child query i.e.&amp;nbsp;&lt;STRONG&gt;| search "LoggerName2*"&lt;/STRONG&gt; is printing just fine in a tabular format.&lt;/P&gt;
&lt;P&gt;Value of the code field is API response code i.e. can be either 2XX, 3XX, 4XX, 5XX.&lt;BR /&gt;Could someone please help ? Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 15:03:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677402#M231634</guid>
      <dc:creator>NishantKrishna</dc:creator>
      <dc:date>2024-02-13T15:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Append Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677404#M231635</link>
      <description>&lt;P&gt;You would have to share some sample events (anonymised of course) in order for us to determine why your rex command is not extracting the code for you&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 14:23:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677404#M231635</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-13T14:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Append Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677427#M231645</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="SplunkResult.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29351i886CDE09D018A7ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SplunkResult.png" alt="SplunkResult.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 15:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677427#M231645</guid>
      <dc:creator>NishantKrishna</dc:creator>
      <dc:date>2024-02-13T15:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Append Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677430#M231648</link>
      <description>&lt;P&gt;Logger 1 events:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;2024-02-08&lt;/SPAN&gt; &lt;SPAN class=""&gt;16:46:00.353&lt;/SPAN&gt; &lt;SPAN class=""&gt;INFO&lt;/SPAN&gt; &lt;SPAN class=""&gt;54208&lt;/SPAN&gt;&lt;SPAN&gt; --&lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;[XX_XX&lt;/SPAN&gt;&lt;SPAN class=""&gt;:XXX-XX-XXX&lt;/SPAN&gt;&lt;SPAN&gt;][&lt;/SPAN&gt;&lt;SPAN class=""&gt;cutor-thread-22&lt;/SPAN&gt;&lt;SPAN&gt;] XXXXXXXXX&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&amp;nbsp;&amp;lt;&lt;SPAN class=""&gt;LoggerName1&lt;/SPAN&gt;&amp;gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN class=""&gt;17327025&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN class=""&gt;field&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN class=""&gt;field&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN class=""&gt;field&lt;/SPAN&gt;&lt;SPAN&gt;|field&lt;/SPAN&gt;&lt;SPAN&gt;|field&lt;/SPAN&gt;&lt;SPAN&gt;|200&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logger 2 events:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;2024-02-13&lt;/SPAN&gt; &lt;SPAN class=""&gt;13:58:24.174&lt;/SPAN&gt; &lt;SPAN class=""&gt;INFO&lt;/SPAN&gt; &lt;SPAN class=""&gt;54208&lt;/SPAN&gt;&lt;SPAN&gt; --&lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;[XX_XX&lt;/SPAN&gt;&lt;SPAN class=""&gt;:xx-xxx-xxx&lt;/SPAN&gt;&lt;SPAN&gt;][&lt;/SPAN&gt;&lt;SPAN class=""&gt;utor-thread-XXX&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;c.l.s.d.a.XXXXXXX&lt;/SPAN&gt; &lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;XXX-XXX-20000:&lt;/SPAN&gt;&amp;nbsp;XXX&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;, XXX&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;XXXXXXXXXXX0305a8a3f369f518&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;XXXX:&lt;/SPAN&gt; &lt;SPAN class=""&gt;6shfsgj7601f909&amp;lt;LoggerName2&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;notificationDetails=&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;key=XXX&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;key=hXXXXXn@XX.com&lt;/SPAN&gt;&lt;SPAN&gt; , key&lt;/SPAN&gt;&lt;SPAN class=""&gt;=XXXXX&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;key=XXX&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;key=donotreply@XXX.co.uk&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;key=XXX63801&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;key=XXX_20240213&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;key=XXX_BATCH&lt;/SPAN&gt;&lt;SPAN&gt;}, &lt;/SPAN&gt;&lt;SPAN class=""&gt;templateVariables=&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;key=XXXX7757&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;SPAN class=""&gt;key&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=9NE&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;SPAN class=""&gt;key&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=Mr&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;SPAN class=""&gt;key&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=Mau&lt;/SPAN&gt;&lt;SPAN&gt;}} , &lt;/SPAN&gt;&lt;SPAN class=""&gt;583d6bc3-5e7d-4af8-a626-22db8bb50cb9&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 15:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677430#M231648</guid>
      <dc:creator>NishantKrishna</dc:creator>
      <dc:date>2024-02-13T15:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Append Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677438#M231654</link>
      <description>&lt;P&gt;Your regex do not match your sample events, for example, the logger1 regex could look like this (assuming your example event is accurate):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\&amp;lt;LoggerName\d\&amp;gt;\|(?&amp;lt;time&amp;gt;\w+)\|(?&amp;lt;Service&amp;gt;\w+)\|(?&amp;lt;Type&amp;gt;\w+)\|(?&amp;lt;brand&amp;gt;\w+)\|(?&amp;lt;template&amp;gt;\w+)\|(?&amp;lt;hashId&amp;gt;[\w-]+)\|(?&amp;lt;Code&amp;gt;\w+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Feb 2024 16:33:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677438#M231654</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-13T16:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Append Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677441#M231657</link>
      <description>&lt;P&gt;It' still not working.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Below is my full event :&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;c.l.s.d.a.NotificationResourceController&lt;/SPAN&gt; &lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;API&lt;/SPAN&gt; &lt;SPAN class=""&gt;EXECUTION&lt;/SPAN&gt; &lt;SPAN class=""&gt;TIME&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN class=""&gt;field1&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN class=""&gt;field2&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN class=""&gt;field3&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN class=""&gt;field4&lt;/SPAN&gt;&lt;SPAN&gt;|field5&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN class=""&gt;field6&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN class=""&gt;field7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;field1 - time in ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;field2/field3 - mode of comms in caps letter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;field4 - brand in caps letter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;field5 - templateName( e.g. XX_YYYYYYY_ZZZ_XXX )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;field6 - hashID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;field7 - responsecode (2xx,3xx,4xx or 5xx)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 16:48:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677441#M231657</guid>
      <dc:creator>NishantKrishna</dc:creator>
      <dc:date>2024-02-13T16:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Append Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677444#M231659</link>
      <description>&lt;P&gt;Regex is a pattern matching algorithm. The problem with dummy data as you have provided is that if it doesn't accurately enough match the actual data, the regex used will not work. Please share an accurate representation of your events in a code block &amp;lt;/&amp;gt; so that formatting is preserved as this is important for pattern recognition.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 17:01:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677444#M231659</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-13T17:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Append Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677457#M231661</link>
      <description>&lt;P&gt;Attached log snippet&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Log.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29353i530C385360CBA689/image-size/large?v=v2&amp;amp;px=999" role="button" title="Log.png" alt="Log.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 17:57:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Append-Query/m-p/677457#M231661</guid>
      <dc:creator>NishantKrishna</dc:creator>
      <dc:date>2024-02-13T17:57:13Z</dc:date>
    </item>
  </channel>
</rss>

