<?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 Output of one String as an input to another search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673587#M230650</link>
    <description>&lt;P&gt;I have this query which is working as expected. There are two different body&amp;nbsp;axs_event_txn_visa_req_parsedbody and&amp;nbsp;axs_event_txn_visa_rsp_formatting and common between two is&amp;nbsp;F62_2&lt;/P&gt;&lt;P&gt;(eventtype =axs_event_txn_visa_req_parsedbody "++EXT-ID[C0] FLD[Authentication Program..] FRMT[TLV] LL[1] LEN[2] DATA[01]") OR eventtype=axs_event_txn_visa_rsp_formatting&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[Acquiring Institution.*?DATA\[(?&amp;lt;F19&amp;gt;[^\]]*).*)"&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[Authentication Program.*?DATA\[(?&amp;lt;FCO&amp;gt;[^\]]*).*)"&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;F62_2&amp;gt;[^\]]*).*)"&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[Response Code.*?DATA\[(?&amp;lt;VRC&amp;gt;[^\]]*).*)"&lt;BR /&gt;| stats values(txn_uid) as txn_uid, values(txn_timestamp) as txn_timestamp, values(F19) as F19, values(FCO) as FCO, values(VRC) as VRC by F62_2&lt;BR /&gt;| where F19!=036 AND FCO=01&lt;/P&gt;&lt;P&gt;now lets say i want to rewrite this query using appendcol/substring. something like this.&amp;nbsp;TID from&amp;nbsp;axs_event_txn_visa_req_parsedbody the resulted output should be passing to another query so i can corresponding log&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;Table -1&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name Emp-id&lt;/P&gt;&lt;P&gt;Jayesh 12345&lt;/P&gt;&lt;P&gt;Table&lt;/P&gt;&lt;P&gt;Designation Emp-id&lt;/P&gt;&lt;P&gt;Engineer 12345&lt;/P&gt;&lt;P&gt;use Emp-id from table-1 and get the destination from table-2, similarly TID is the common field between two index, i want to fetch VRC using TID from Table-1&lt;/P&gt;&lt;P&gt;index=au_axs_common_log source=*Visa* "++EXT-ID[C0] FLD[Authentication Program..] FRMT[TLV] LL[1] LEN[2] DATA[01]" | rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;TID&amp;gt;[^\]]*).*)"&lt;BR /&gt;|appendcols search [ index=au_axs_common_log source=*Visa* "FORMATTING:" | rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;TID&amp;gt;[^\]]*).*)" |rex field=_raw "(?s)(.*?FLD\[Response Code.*?DATA\[(?&amp;lt;VRC&amp;gt;[^\]]*).*)"&lt;BR /&gt;| stats values(VRC) as VRC by TID ]&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jan 2024 06:26:23 GMT</pubDate>
    <dc:creator>jayeshrajvir</dc:creator>
    <dc:date>2024-01-09T06:26:23Z</dc:date>
    <item>
      <title>Output of one String as an input to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673587#M230650</link>
      <description>&lt;P&gt;I have this query which is working as expected. There are two different body&amp;nbsp;axs_event_txn_visa_req_parsedbody and&amp;nbsp;axs_event_txn_visa_rsp_formatting and common between two is&amp;nbsp;F62_2&lt;/P&gt;&lt;P&gt;(eventtype =axs_event_txn_visa_req_parsedbody "++EXT-ID[C0] FLD[Authentication Program..] FRMT[TLV] LL[1] LEN[2] DATA[01]") OR eventtype=axs_event_txn_visa_rsp_formatting&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[Acquiring Institution.*?DATA\[(?&amp;lt;F19&amp;gt;[^\]]*).*)"&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[Authentication Program.*?DATA\[(?&amp;lt;FCO&amp;gt;[^\]]*).*)"&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;F62_2&amp;gt;[^\]]*).*)"&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[Response Code.*?DATA\[(?&amp;lt;VRC&amp;gt;[^\]]*).*)"&lt;BR /&gt;| stats values(txn_uid) as txn_uid, values(txn_timestamp) as txn_timestamp, values(F19) as F19, values(FCO) as FCO, values(VRC) as VRC by F62_2&lt;BR /&gt;| where F19!=036 AND FCO=01&lt;/P&gt;&lt;P&gt;now lets say i want to rewrite this query using appendcol/substring. something like this.&amp;nbsp;TID from&amp;nbsp;axs_event_txn_visa_req_parsedbody the resulted output should be passing to another query so i can corresponding log&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;Table -1&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name Emp-id&lt;/P&gt;&lt;P&gt;Jayesh 12345&lt;/P&gt;&lt;P&gt;Table&lt;/P&gt;&lt;P&gt;Designation Emp-id&lt;/P&gt;&lt;P&gt;Engineer 12345&lt;/P&gt;&lt;P&gt;use Emp-id from table-1 and get the destination from table-2, similarly TID is the common field between two index, i want to fetch VRC using TID from Table-1&lt;/P&gt;&lt;P&gt;index=au_axs_common_log source=*Visa* "++EXT-ID[C0] FLD[Authentication Program..] FRMT[TLV] LL[1] LEN[2] DATA[01]" | rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;TID&amp;gt;[^\]]*).*)"&lt;BR /&gt;|appendcols search [ index=au_axs_common_log source=*Visa* "FORMATTING:" | rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;TID&amp;gt;[^\]]*).*)" |rex field=_raw "(?s)(.*?FLD\[Response Code.*?DATA\[(?&amp;lt;VRC&amp;gt;[^\]]*).*)"&lt;BR /&gt;| stats values(VRC) as VRC by TID ]&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 06:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673587#M230650</guid>
      <dc:creator>jayeshrajvir</dc:creator>
      <dc:date>2024-01-09T06:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Output of one String as an input to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673589#M230651</link>
      <description>&lt;P&gt;append is used for historical data but my data in real time so please suggest&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 06:45:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673589#M230651</guid>
      <dc:creator>jayeshrajvir</dc:creator>
      <dc:date>2024-01-09T06:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Output of one String as an input to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673598#M230653</link>
      <description>&lt;P&gt;1. appendcols just adds additional columns from the subsearch to the results of the main search &lt;EM&gt;without any correlation between the result sets&lt;/EM&gt;. It just "glues" them together in the order return by respective searches. So it's usually &lt;EM&gt;not&lt;/EM&gt; the best possible idea. The command has its uses but they are very rare.&lt;/P&gt;&lt;P&gt;2. Running real-time searches is generally not the best idea - it allocates a single CPU &lt;EM&gt;across every indexer participating in the search as well as your search-head&lt;/EM&gt;. Also real-time searches have a lot of limitations (and you can only use some of the commands in your searches).&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 08:51:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673598#M230653</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-09T08:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Output of one String as an input to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673607#M230654</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=au_axs_common_log source=*Visa* "++EXT-ID[C0] FLD[Authentication Program..] FRMT[TLV] LL[1] LEN[2] DATA[01]" | rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;TID&amp;gt;[^\]]*).*)"
|append [search index=au_axs_common_log source=*Visa* "FORMATTING:" | rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;TID&amp;gt;[^\]]*).*)" |rex field=_raw "(?s)(.*?FLD\[Response Code.*?DATA\[(?&amp;lt;VRC&amp;gt;[^\]]*).*)"]
| stats values(index) as index values(VRC) as VRC by TID
| where index="au_axs_common_log"&lt;/LI-CODE&gt;&lt;P&gt;By the way, this is untested - if you want people to suggest tested examples, you should provide (anonymised) sample events (together with example expected results).&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 09:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673607#M230654</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-01-09T09:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Output of one String as an input to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673893#M230706</link>
      <description>&lt;P&gt;append and appendcol simply appending the query its like a glue. Please correct me if i am wrong&lt;/P&gt;&lt;P&gt;what i really want is&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is&amp;nbsp; query 1&amp;nbsp; - output&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;(eventtype =axs_event_txn_visa_req_parsedbody "++EXT-ID[C0] FLD[Authentication Program..] FRMT[TLV] LL[1] LEN[2] DATA[01]")&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[Acquiring Institution.*?DATA\[(?&amp;lt;F19&amp;gt;[^\]]*).*)"&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[Authentication Program.*?DATA\[(?&amp;lt;FCO&amp;gt;[^\]]*).*)"&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;F62_2&amp;gt;[^\]]*).*)"&lt;BR /&gt;| stats values(F19) as F19, values(FCO) as FCO by F62_2&lt;BR /&gt;| where F19!=036 AND FCO=01&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jayeshrajvir_0-1704943280985.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28861i90D9EEE5EBF63E1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jayeshrajvir_0-1704943280985.png" alt="jayeshrajvir_0-1704943280985.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;TABLE width="307"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="161"&gt;&lt;A href="https://authentic-splunkprod.apps.anz/en-US/app/au_axs_shc_app/search?q=search%20(eventtype%20%3Daxs_event_txn_visa_req_parsedbody%20%22%2B%2BEXT-ID%5BC0%5D%20%20%20%20FLD%5BAuthentication%20Program..%5D%20%20FRMT%5BTLV%5D%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LL%5B1%5D%20%20LEN%5B2%5D%20%20%20%20DATA%5B01%5D%22)%20%20%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5BAcquiring%20Institution.*%3FDATA%5C%5B(%3F%3CF19%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5BAuthentication%20Program.*%3FDATA%5C%5B(%3F%3CFCO%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5B62-2%20Transaction%20Ident.*%3FDATA%5C%5B(%3F%3CF62_2%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20stats%20values(F19)%20as%20F19%2C%20values(FCO)%20as%20FCO%20by%20F62_2%0A%7C%20where%20F19!%3D036%20AND%20FCO%3D01&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=-2h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;sid=1704943262.4435779_AEA465AE-AE75-4020-A287-6C7AA540B850" target="_blank" rel="noopener"&gt;F62_2&lt;/A&gt;&lt;/TD&gt;&lt;TD width="73"&gt;F19&lt;/TD&gt;&lt;TD width="73"&gt;FCO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="161"&gt;384011068172061&lt;/TD&gt;&lt;TD width="73"&gt;840&lt;/TD&gt;&lt;TD width="73"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="161"&gt;584011056069894&lt;/TD&gt;&lt;TD width="73"&gt;826&lt;/TD&gt;&lt;TD width="73"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query 2&lt;/P&gt;&lt;P&gt;eventtype=axs_event_txn_visa_rsp_formatting&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;F62_2&amp;gt;[^\]]*).*)"&lt;BR /&gt;| stats values(txn_uid) as txn_uid, values(txn_timestamp) as txn_timestamp, by F62_2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What&lt;/STRONG&gt; &lt;STRONG&gt;I&lt;/STRONG&gt;&lt;SPAN&gt; really want &lt;/SPAN&gt;&lt;STRONG&gt;is&lt;/STRONG&gt; &lt;STRONG&gt;the&lt;/STRONG&gt;&lt;SPAN&gt; output &lt;/SPAN&gt;&lt;STRONG&gt;of&lt;/STRONG&gt; &lt;STRONG&gt;the&lt;/STRONG&gt; &lt;STRONG&gt;for&lt;/STRONG&gt;&lt;SPAN&gt; query 1 and pass as an input to query&lt;/SPAN&gt;, common field between two queries is&amp;nbsp;&lt;A href="https://authentic-splunkprod.apps.anz/en-US/app/au_axs_shc_app/search?q=search%20(eventtype%20%3Daxs_event_txn_visa_req_parsedbody%20%22%2B%2BEXT-ID%5BC0%5D%20%20%20%20FLD%5BAuthentication%20Program..%5D%20%20FRMT%5BTLV%5D%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LL%5B1%5D%20%20LEN%5B2%5D%20%20%20%20DATA%5B01%5D%22)%20%20%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5BAcquiring%20Institution.*%3FDATA%5C%5B(%3F%3CF19%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5BAuthentication%20Program.*%3FDATA%5C%5B(%3F%3CFCO%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5B62-2%20Transaction%20Ident.*%3FDATA%5C%5B(%3F%3CF62_2%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20stats%20values(F19)%20as%20F19%2C%20values(FCO)%20as%20FCO%20by%20F62_2%0A%7C%20where%20F19!%3D036%20AND%20FCO%3D01&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=-2h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;sid=1704943262.4435779_AEA465AE-AE75-4020-A287-6C7AA540B850" target="_blank" rel="noopener"&gt;F62_2. &lt;/A&gt;&lt;/P&gt;&lt;P&gt;if i run the query it would be different output, so basically two queries should be combined and when it run it should take from&amp;nbsp;&lt;A href="https://authentic-splunkprod.apps.anz/en-US/app/au_axs_shc_app/search?q=search%20(eventtype%20%3Daxs_event_txn_visa_req_parsedbody%20%22%2B%2BEXT-ID%5BC0%5D%20%20%20%20FLD%5BAuthentication%20Program..%5D%20%20FRMT%5BTLV%5D%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LL%5B1%5D%20%20LEN%5B2%5D%20%20%20%20DATA%5B01%5D%22)%20%20%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5BAcquiring%20Institution.*%3FDATA%5C%5B(%3F%3CF19%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5BAuthentication%20Program.*%3FDATA%5C%5B(%3F%3CFCO%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5B62-2%20Transaction%20Ident.*%3FDATA%5C%5B(%3F%3CF62_2%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20stats%20values(F19)%20as%20F19%2C%20values(FCO)%20as%20FCO%20by%20F62_2%0A%7C%20where%20F19!%3D036%20AND%20FCO%3D01&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=-2h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;sid=1704943262.4435779_AEA465AE-AE75-4020-A287-6C7AA540B850" target="_blank" rel="noopener"&gt;F62_2&lt;/A&gt;&amp;nbsp;from query 1 and produce&amp;nbsp;values(txn_uid) as txn_uid, values(txn_timestamp) as txn_timestamp&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jayeshrajvir_1-1704943778987.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28862iC0F6D45145287A45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jayeshrajvir_1-1704943778987.png" alt="jayeshrajvir_1-1704943778987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 03:31:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673893#M230706</guid>
      <dc:creator>jayeshrajvir</dc:creator>
      <dc:date>2024-01-11T03:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Output of one String as an input to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673894#M230707</link>
      <description>&lt;P&gt;thank you so what is the best practice to combine two queries and produce the output&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 03:32:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673894#M230707</guid>
      <dc:creator>jayeshrajvir</dc:creator>
      <dc:date>2024-01-11T03:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Output of one String as an input to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673906#M230708</link>
      <description>&lt;P&gt;Depends on the actual use case - the data you have and the desired output. You already had one example in this thread from &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt; .&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 07:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673906#M230708</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-11T07:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Output of one String as an input to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673912#M230710</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243602"&gt;@jayeshrajvir&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;append and appendcol simply appending the query its like a glue. Please correct me if i am wrong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Not quite right - append adds events to the event pipeline, appendcols adds fields to existing event i.e. append is vertical "glue" whereas appendcols is horizontal "glue"&lt;/P&gt;&lt;P&gt;For completeness, appendpipe is also vertical "glue" but it uses the existing events pipeline as its base data rather than a new search&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 09:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673912#M230710</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-01-11T09:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Output of one String as an input to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673921#M230712</link>
      <description>&lt;P&gt;ok. Thanks.&lt;/P&gt;&lt;P&gt;Would you please share your thoughts on how to merge the two queries&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 10:51:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673921#M230712</guid>
      <dc:creator>jayeshrajvir</dc:creator>
      <dc:date>2024-01-11T10:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Output of one String as an input to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673923#M230713</link>
      <description>&lt;P&gt;what i really want is&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is&amp;nbsp; query 1&amp;nbsp; - output&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;(eventtype =axs_event_txn_visa_req_parsedbody "++EXT-ID[C0] FLD[Authentication Program..] FRMT[TLV] LL[1] LEN[2] DATA[01]")&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[Acquiring Institution.*?DATA\[(?&amp;lt;F19&amp;gt;[^\]]*).*)"&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[Authentication Program.*?DATA\[(?&amp;lt;FCO&amp;gt;[^\]]*).*)"&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;F62_2&amp;gt;[^\]]*).*)"&lt;BR /&gt;| stats values(F19) as F19, values(FCO) as FCO by F62_2&lt;BR /&gt;| where F19!=036 AND FCO=01&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jayeshrajvir_0-1704970322052.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28868iFEE188DF9BD39056/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jayeshrajvir_0-1704970322052.png" alt="jayeshrajvir_0-1704970322052.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE width="307"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="161"&gt;&lt;A href="https://authentic-splunkprod.apps.anz/en-US/app/au_axs_shc_app/search?q=search%20(eventtype%20%3Daxs_event_txn_visa_req_parsedbody%20%22%2B%2BEXT-ID%5BC0%5D%20%20%20%20FLD%5BAuthentication%20Program..%5D%20%20FRMT%5BTLV%5D%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LL%5B1%5D%20%20LEN%5B2%5D%20%20%20%20DATA%5B01%5D%22)%20%20%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5BAcquiring%20Institution.*%3FDATA%5C%5B(%3F%3CF19%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5BAuthentication%20Program.*%3FDATA%5C%5B(%3F%3CFCO%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5B62-2%20Transaction%20Ident.*%3FDATA%5C%5B(%3F%3CF62_2%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20stats%20values(F19)%20as%20F19%2C%20values(FCO)%20as%20FCO%20by%20F62_2%0A%7C%20where%20F19!%3D036%20AND%20FCO%3D01&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=-2h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;sid=1704943262.4435779_AEA465AE-AE75-4020-A287-6C7AA540B850" target="_blank" rel="noopener nofollow noreferrer"&gt;F62_2&lt;/A&gt;&lt;/TD&gt;&lt;TD width="73"&gt;F19&lt;/TD&gt;&lt;TD width="73"&gt;FCO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="161"&gt;384011068172061&lt;/TD&gt;&lt;TD width="73"&gt;840&lt;/TD&gt;&lt;TD width="73"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="161"&gt;584011056069894&lt;/TD&gt;&lt;TD width="73"&gt;826&lt;/TD&gt;&lt;TD width="73"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query 2&lt;/P&gt;&lt;P&gt;eventtype=axs_event_txn_visa_rsp_formatting&lt;BR /&gt;| rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;F62_2&amp;gt;[^\]]*).*)"&lt;BR /&gt;| stats values(txn_uid) as txn_uid, values(txn_timestamp) as txn_timestamp, by F62_2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;I&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;really want&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;is&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;the&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;output&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;of&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;the&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;for&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;query 1 and pass as an input to query&lt;/SPAN&gt;, common field between two queries is&amp;nbsp;&lt;A href="https://authentic-splunkprod.apps.anz/en-US/app/au_axs_shc_app/search?q=search%20(eventtype%20%3Daxs_event_txn_visa_req_parsedbody%20%22%2B%2BEXT-ID%5BC0%5D%20%20%20%20FLD%5BAuthentication%20Program..%5D%20%20FRMT%5BTLV%5D%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LL%5B1%5D%20%20LEN%5B2%5D%20%20%20%20DATA%5B01%5D%22)%20%20%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5BAcquiring%20Institution.*%3FDATA%5C%5B(%3F%3CF19%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5BAuthentication%20Program.*%3FDATA%5C%5B(%3F%3CFCO%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5B62-2%20Transaction%20Ident.*%3FDATA%5C%5B(%3F%3CF62_2%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20stats%20values(F19)%20as%20F19%2C%20values(FCO)%20as%20FCO%20by%20F62_2%0A%7C%20where%20F19!%3D036%20AND%20FCO%3D01&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=-2h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;sid=1704943262.4435779_AEA465AE-AE75-4020-A287-6C7AA540B850" target="_blank" rel="noopener nofollow noreferrer"&gt;F62_2.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if i run the query it would be different output, so basically two queries should be combined and when it run it should take from&amp;nbsp;&lt;A href="https://authentic-splunkprod.apps.anz/en-US/app/au_axs_shc_app/search?q=search%20(eventtype%20%3Daxs_event_txn_visa_req_parsedbody%20%22%2B%2BEXT-ID%5BC0%5D%20%20%20%20FLD%5BAuthentication%20Program..%5D%20%20FRMT%5BTLV%5D%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LL%5B1%5D%20%20LEN%5B2%5D%20%20%20%20DATA%5B01%5D%22)%20%20%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5BAcquiring%20Institution.*%3FDATA%5C%5B(%3F%3CF19%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5BAuthentication%20Program.*%3FDATA%5C%5B(%3F%3CFCO%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20rex%20field%3D_raw%20%22(%3Fs)(.*%3FFLD%5C%5B62-2%20Transaction%20Ident.*%3FDATA%5C%5B(%3F%3CF62_2%3E%5B%5E%5C%5D%5D*).*)%22%0A%7C%20stats%20values(F19)%20as%20F19%2C%20values(FCO)%20as%20FCO%20by%20F62_2%0A%7C%20where%20F19!%3D036%20AND%20FCO%3D01&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=-2h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;sid=1704943262.4435779_AEA465AE-AE75-4020-A287-6C7AA540B850" target="_blank" rel="noopener nofollow noreferrer"&gt;F62_2&lt;/A&gt;&amp;nbsp;from query 1 and produce&amp;nbsp;values(txn_uid) as txn_uid, values(txn_timestamp) as txn_timestamp&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 10:52:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673923#M230713</guid>
      <dc:creator>jayeshrajvir</dc:creator>
      <dc:date>2024-01-11T10:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Output of one String as an input to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673925#M230714</link>
      <description>&lt;LI-CODE lang="markup"&gt;(eventtype =axs_event_txn_visa_req_parsedbody "++EXT-ID[C0] FLD[Authentication Program..] FRMT[TLV] LL[1] LEN[2] DATA[01]")
| rex field=_raw "(?s)(.*?FLD\[Acquiring Institution.*?DATA\[(?&amp;lt;F19&amp;gt;[^\]]*).*)"
| rex field=_raw "(?s)(.*?FLD\[Authentication Program.*?DATA\[(?&amp;lt;FCO&amp;gt;[^\]]*).*)"
| rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;F62_2&amp;gt;[^\]]*).*)"
| stats values(F19) as F19, values(FCO) as FCO by F62_2
| where F19!=036 AND FCO=01
| append
  [search eventtype=axs_event_txn_visa_rsp_formatting
  | rex field=_raw "(?s)(.*?FLD\[62-2 Transaction Ident.*?DATA\[(?&amp;lt;F62_2&amp;gt;[^\]]*).*)"]
| stats values(F19) as F19, values(FCO) as FCO values(txn_uid) as txn_uid, values(txn_timestamp) as txn_timestamp, by F62_2&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 11 Jan 2024 11:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-of-one-String-as-an-input-to-another-search/m-p/673925#M230714</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-01-11T11:05:49Z</dc:date>
    </item>
  </channel>
</rss>

