<?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: Need help in formulate query for our use case in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/577841#M201362</link>
    <description>&lt;P&gt;You could try something like this (the part before the blank lines just sets up some dummy data):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="AIRFLOW_CTX_DAG_OWNER=Prathibha
AIRFLOW_CTX_DAG_ID=M_OPI_NPPV_NPPES
AIRFLOW_CTX_TASK_ID=NPPES_INSERT
AIRFLOW_CTX_EXECUTION_DATE=2021-12-08T18:57:24.419709+00:00
AIRFLOW_CTX_DAG_RUN_ID=manual__2021-12-08T18:57:24.419709+00:00

[2021-12-08 19:12:59,923] {{cursor.py:696}} INFO - query: [INSERT OVERWRITE INTO IDRC_OPI_DEV.CMS_BDM_OPI_NPPES_DEV.OH_IN_PRVDR_NPPES SELEC...]
[2021-12-08 19:13:13,514] {{cursor.py:720}} INFO - query execution done
[2021-12-08 19:13:13,570] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,570] {{snowflake.py:277}} INFO - Rows affected: 1
[2021-12-08 19:13:13,592] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,592] {{snowflake.py:278}} INFO - Snowflake query id: 01a0d120-0000-12da-0000-0024028474a6
[2021-12-08 19:13:13,612] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,612] {{snowflake.py:277}} INFO - Rows affected: 7019070
[2021-12-08 19:13:13,632] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,632] {{snowflake.py:278}} INFO - Snowflake query id: 01a0d120-0000-12ce-0000-002402848486
[2021-12-08 19:13:13,811] {{taskinstance.py:1192}} INFO - Marking task as SUCCESS. dag_id=M_OPI_NPPV_NPPES, task_id=NPPES_INSERT, execution_date=20211208T185724, start_date=20211208T191256, end_date=20211208T191313
[2021-12-08 19:13:13,868] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,867] {{local_task_job.py:146}} INFO - Task exited with return code"
| multikv noheader=t
| fields _raw



| transaction endswith="AIRFLOW_CTX_DAG_OWNER" keepevicted=t keeporphans=t mvraw=t
| fields _raw
| fields - _time
| rex "AIRFLOW_CTX_DAG_ID=(?&amp;lt;dag_id&amp;gt;.*)"
| rex "AIRFLOW_CTX_TASK_ID=(?&amp;lt;task_id&amp;gt;.*)"
| rex max_match=0 "Rows affected: (?&amp;lt;rows&amp;gt;.*)"
| rex "Marking task as (?&amp;lt;status&amp;gt;[^\.]+)"
| table dag_id task_id status rows&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 09 Dec 2021 04:54:13 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-12-09T04:54:13Z</dc:date>
    <item>
      <title>Need help in formulate query for our use case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/577837#M201359</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;I'm newbie in writing Splunk queries. Could you please provide me guidance how to design a SPL for below use case.&lt;/P&gt;&lt;P&gt;Here are sample logs:&lt;/P&gt;&lt;P&gt;AIRFLOW_CTX_DAG_OWNER=Prathibha&lt;BR /&gt;AIRFLOW_CTX_DAG_ID=&lt;STRONG&gt;M_OPI_NPPV_NPPES&lt;/STRONG&gt;&lt;BR /&gt;AIRFLOW_CTX_TASK_ID=&lt;STRONG&gt;NPPES_INSERT&lt;/STRONG&gt;&lt;BR /&gt;AIRFLOW_CTX_EXECUTION_DATE=2021-12-08T18:57:24.419709+00:00&lt;BR /&gt;AIRFLOW_CTX_DAG_RUN_ID=manual__2021-12-08T18:57:24.419709+00:00&lt;/P&gt;&lt;P&gt;[2021-12-08 19:12:59,923] {{cursor.py:696}} INFO - query: [INSERT OVERWRITE INTO IDRC_OPI_DEV.CMS_BDM_OPI_NPPES_DEV.OH_IN_PRVDR_NPPES SELEC...]&lt;BR /&gt;[2021-12-08 19:13:13,514] {{cursor.py:720}} INFO - query execution done&lt;BR /&gt;[2021-12-08 19:13:13,570] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,570] {{snowflake.py:277}} INFO - &lt;STRONG&gt;Rows affected: 1&lt;/STRONG&gt;&lt;BR /&gt;[2021-12-08 19:13:13,592] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,592] {{snowflake.py:278}} INFO - Snowflake query id: 01a0d120-0000-12da-0000-0024028474a6&lt;BR /&gt;[2021-12-08 19:13:13,612] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,612] {{snowflake.py:277}} INFO - &lt;STRONG&gt;Rows affected: 7019070&lt;/STRONG&gt;&lt;BR /&gt;[2021-12-08 19:13:13,632] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,632] {{snowflake.py:278}} INFO - Snowflake query id: 01a0d120-0000-12ce-0000-002402848486&lt;BR /&gt;[2021-12-08 19:13:13,811] {{taskinstance.py:1192}} INFO - Marking task as SUCCESS. dag_id=M_OPI_NPPV_NPPES, task_id=NPPES_INSERT, execution_date=20211208T185724, start_date=20211208T191256, end_date=20211208T191313&lt;BR /&gt;[2021-12-08 19:13:13,868] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,867] {{local_task_job.py:146}} INFO - Task exited with return code&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected output in tabular form:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DAG_ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TASK_ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;STATUS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ROWS_EFFECTED&lt;/STRONG&gt;&lt;BR /&gt;M_OPI_NPPV_NPPES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NPPES_INSERT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUCCESS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1,7019070&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 02:19:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/577837#M201359</guid>
      <dc:creator>kapoorsumit2020</dc:creator>
      <dc:date>2021-12-09T02:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in formulate query for our use case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/577841#M201362</link>
      <description>&lt;P&gt;You could try something like this (the part before the blank lines just sets up some dummy data):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="AIRFLOW_CTX_DAG_OWNER=Prathibha
AIRFLOW_CTX_DAG_ID=M_OPI_NPPV_NPPES
AIRFLOW_CTX_TASK_ID=NPPES_INSERT
AIRFLOW_CTX_EXECUTION_DATE=2021-12-08T18:57:24.419709+00:00
AIRFLOW_CTX_DAG_RUN_ID=manual__2021-12-08T18:57:24.419709+00:00

[2021-12-08 19:12:59,923] {{cursor.py:696}} INFO - query: [INSERT OVERWRITE INTO IDRC_OPI_DEV.CMS_BDM_OPI_NPPES_DEV.OH_IN_PRVDR_NPPES SELEC...]
[2021-12-08 19:13:13,514] {{cursor.py:720}} INFO - query execution done
[2021-12-08 19:13:13,570] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,570] {{snowflake.py:277}} INFO - Rows affected: 1
[2021-12-08 19:13:13,592] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,592] {{snowflake.py:278}} INFO - Snowflake query id: 01a0d120-0000-12da-0000-0024028474a6
[2021-12-08 19:13:13,612] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,612] {{snowflake.py:277}} INFO - Rows affected: 7019070
[2021-12-08 19:13:13,632] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,632] {{snowflake.py:278}} INFO - Snowflake query id: 01a0d120-0000-12ce-0000-002402848486
[2021-12-08 19:13:13,811] {{taskinstance.py:1192}} INFO - Marking task as SUCCESS. dag_id=M_OPI_NPPV_NPPES, task_id=NPPES_INSERT, execution_date=20211208T185724, start_date=20211208T191256, end_date=20211208T191313
[2021-12-08 19:13:13,868] {{logging_mixin.py:104}} INFO - [2021-12-08 19:13:13,867] {{local_task_job.py:146}} INFO - Task exited with return code"
| multikv noheader=t
| fields _raw



| transaction endswith="AIRFLOW_CTX_DAG_OWNER" keepevicted=t keeporphans=t mvraw=t
| fields _raw
| fields - _time
| rex "AIRFLOW_CTX_DAG_ID=(?&amp;lt;dag_id&amp;gt;.*)"
| rex "AIRFLOW_CTX_TASK_ID=(?&amp;lt;task_id&amp;gt;.*)"
| rex max_match=0 "Rows affected: (?&amp;lt;rows&amp;gt;.*)"
| rex "Marking task as (?&amp;lt;status&amp;gt;[^\.]+)"
| table dag_id task_id status rows&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 09 Dec 2021 04:54:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/577841#M201362</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-09T04:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in formulate query for our use case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/578088#M201474</link>
      <description>&lt;P class="lia-indent-padding-left-30px"&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;. your SPL is working as expected when I feed real data.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;I need to add two more columns in table : dag_run_date, dag_run_time, the values of those two column needs to be extracted from this statement but unable to form corresponding rex command . Can you help me on that?&lt;/P&gt;&lt;PRE&gt;AIRFLOW_CTX_EXECUTION_DATE=2021-12-08T18:57:24.419709+00:00&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:20:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/578088#M201474</guid>
      <dc:creator>kapoorsumit2020</dc:creator>
      <dc:date>2021-12-10T22:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in formulate query for our use case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/578091#M201475</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "AIRFLOW_CTX_EXECUTION_DATE=(?&amp;lt;dag_run_date&amp;gt;\d{4}\-\d{2}\-\d{2})T(?&amp;lt;dag_run_time&amp;gt;\d{2}:\d{2}:\d{2}\.\d{6})"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/578091#M201475</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-10T23:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in formulate query for our use case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/578254#M201516</link>
      <description>&lt;P&gt;Thanks again&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp; seeing an issue during additional testing. Can you please review and let me know what wrong am I doing in SPL#2.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SPL#1 : &lt;/STRONG&gt;This lists dags, tasks_id, status (SUCCESS/FAILED), Rows_Affected, Task_Start_Date, Task_End_Date correctly:&lt;/P&gt;&lt;P&gt;index=cloud sourcetype=lambda:Airflow2Splunk "\"logGroup\"" "\"airflow-OnePIAirflowEnvironment-DEV-Task\""&lt;BR /&gt;| transaction startswith="\\nAIRFLOW_CTX_DAG_OWNER" endswith="Marking task as"&lt;BR /&gt;| rex field=_raw "AIRFLOW_CTX_DAG_OWNER"=(?&amp;lt;dag_owner&amp;gt;\w+)&lt;BR /&gt;| rex field=_raw "AIRFLOW_CTX_DAG_ID=(?&amp;lt;dag_id&amp;gt;\w+)"&lt;BR /&gt;| rex field=_raw "AIRFLOW_CTX_TASK_ID=(?&amp;lt;task_id&amp;gt;\w+)"&lt;BR /&gt;| rex field=_raw max_match=0 "Rows affected: (?&amp;lt;rows_affected&amp;gt;\d+)"&lt;BR /&gt;| eval rows_affected=mvjoin(rows_affected, ",")&lt;BR /&gt;| rex field=_raw "Marking task as (?&amp;lt;status&amp;gt;[^\.]+)"&lt;BR /&gt;| rex field=_raw "start_date=(?&amp;lt;task_start_date&amp;gt;\d{8}T\d{6})"&lt;BR /&gt;| rex field=_raw "end_date=(?&amp;lt;task_end_date&amp;gt;\d{8}T\d{6})"&lt;BR /&gt;| eval new_start_task_date=strptime(task_start_date,"%Y%m%dT%H%M%S") | eval start_task_date=strftime(new_start_task_date,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| eval new_end_task_date=strptime(task_end_date,"%Y%m%dT%H%M%S") | eval end_task_date=strftime(new_end_task_date,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| table dag_owner dag_id task_id status rows_affected start_task_date end_task_date&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SPL#2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This should list dags, tasks_id, status (FAILED), Rows_Affected, Task_Start_Date, Task_End_Date correctly:&lt;/P&gt;&lt;P&gt;But this SPL is not working as expected. I can some tasks whose status is SUCCESS also in the list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=cloud sourcetype=lambda:Airflow2Splunk "\"logGroup\"" "\"airflow-OnePIAirflowEnvironment-DEV-Task\""&lt;BR /&gt;| transaction startswith="\\nAIRFLOW_CTX_DAG_OWNER" endswith="Marking task as FAILED"&lt;BR /&gt;| rex field=_raw "AIRFLOW_CTX_DAG_OWNER"=(?&amp;lt;dag_owner&amp;gt;\w+)&lt;BR /&gt;| rex field=_raw "AIRFLOW_CTX_DAG_ID=(?&amp;lt;dag_id&amp;gt;\w+)"&lt;BR /&gt;| rex field=_raw "AIRFLOW_CTX_TASK_ID=(?&amp;lt;task_id&amp;gt;\w+)"&lt;BR /&gt;| rex field=_raw max_match=0 "Rows affected: (?&amp;lt;rows_affected&amp;gt;\d+)"&lt;BR /&gt;| eval rows_affected=mvjoin(rows_affected, ",")&lt;BR /&gt;| rex field=_raw "Marking task as (?&amp;lt;status&amp;gt;[^\.]+)"&lt;BR /&gt;| rex field=_raw "start_date=(?&amp;lt;task_start_date&amp;gt;\d{8}T\d{6})"&lt;BR /&gt;| rex field=_raw "end_date=(?&amp;lt;task_end_date&amp;gt;\d{8}T\d{6})"&lt;BR /&gt;| eval new_start_task_date=strptime(task_start_date,"%Y%m%dT%H%M%S") | eval start_task_date=strftime(new_start_task_date,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| eval new_end_task_date=strptime(task_end_date,"%Y%m%dT%H%M%S") | eval end_task_date=strftime(new_end_task_date,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| table dag_owner dag_id task_id status rows_affected start_task_date end_task_date&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 22:40:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/578254#M201516</guid>
      <dc:creator>kapoorsumit2020</dc:creator>
      <dc:date>2021-12-13T22:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in formulate query for our use case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/578257#M201517</link>
      <description>&lt;P&gt;Do you need the \\n before&amp;nbsp;&lt;SPAN&gt;AIRFLOW_CTX_DAG_OWNER?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 23:26:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/578257#M201517</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-13T23:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in formulate query for our use case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/578267#M201519</link>
      <description>&lt;P&gt;When I run following SPL without \n&amp;nbsp;it doesn't yield any result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;| transaction startswith="AIRFLOW_CTX_DAG_OWNER" endswith="Marking task as FAILED"........&lt;/P&gt;&lt;P&gt;However :&lt;/P&gt;&lt;P&gt;| transaction startswith="\\nAIRFLOW_CTX_DAG_OWNER" endswith="Marking task as FAILED"........&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;| transaction startswith="\nAIRFLOW_CTX_DAG_OWNER" endswith="Marking task as FAILED"........&lt;/P&gt;&lt;P&gt;both yields same results.&lt;/P&gt;&lt;P&gt;'\n' is added in Splunk airflow logs (in JSON) when the airflow logs are being pushed to Splunk. That's why I added \\n before&amp;nbsp;AIRFLOW_CTX_DAG_OWNER :&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Airflow logs:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[2021-12-13 20:20:13,145] {{logging_mixin.py:104}} INFO - Running &amp;lt;TaskInstance: any_bash_command_dag.bash_command 2021-12-13T20:20:10.033766+00:00 [running]&amp;gt; on host ip-10-223-50-200.ec2.internal&lt;BR /&gt;[2021-12-13 20:20:13,567] {{taskinstance.py:1283}} INFO - Exporting the following env vars:&lt;BR /&gt;&lt;STRONG&gt;AIRFLOW_CTX_DAG_OWNER&lt;/STRONG&gt;=airflow&lt;BR /&gt;AIRFLOW_CTX_DAG_ID=any_bash_command_dag&lt;BR /&gt;AIRFLOW_CTX_TASK_ID=bash_command&lt;BR /&gt;AIRFLOW_CTX_EXECUTION_DATE=2021-12-13T20:20:10.033766+00:00&lt;BR /&gt;AIRFLOW_CTX_DAG_RUN_ID=manual__2021-12-13T20:20:10.033766+00:00&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Airflow logs in Splunk:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2021-12-13T20:18:02.837Z 2b98fffe-7c1b-4dff-aedf-101c04bcd17d INFO Decoded payload: {&lt;BR /&gt;"messageType": "DATA_MESSAGE",&lt;BR /&gt;"owner": "765460745490",&lt;BR /&gt;"logGroup": "airflow-OnePIAirflowEnvironment-DEV-Task",&lt;BR /&gt;"logStream": "any_bash_command_dag/bash_command/2021-12-13T20_18_00.187744+00_00/1.log",&lt;BR /&gt;"subscriptionFilters": [&lt;BR /&gt;"airflow_2_splunk_task"&lt;BR /&gt;],&lt;BR /&gt;"logEvents": [&lt;BR /&gt;{&lt;BR /&gt;"id": "36560436722252801980494271713377497999438999533834272768",&lt;BR /&gt;"timestamp": 1639426682686,&lt;BR /&gt;"message": "[2021-12-13 20:18:02,686] {{taskinstance.py:1283}} INFO - Exporting the following env vars:&lt;STRONG&gt;\nAIRFLOW_CTX_DAG_OWNER&lt;/STRONG&gt;=airflow\nAIRFLOW_CTX_DAG_ID=any_bash_command_dag\nAIRFLOW_CTX_TASK_ID=bash_command\nAIRFLOW_CTX_EXECUTION_DATE=2021-12-13T20:18:00.187744+00:00\nAIRFLOW_CTX_DAG_RUN_ID=manual__2021-12-13T20:18:00.187744+00:00"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 00:49:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/578267#M201519</guid>
      <dc:creator>kapoorsumit2020</dc:creator>
      <dc:date>2021-12-14T00:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in formulate query for our use case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/578270#M201520</link>
      <description>&lt;P&gt;&lt;STRONG&gt;AIRFLOW_CTX_DAG_OWNER is printed like this in splunk logs:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2021-12-13T20:18:02.837Z 2b98fffe-7c1b-4dff-aedf-101c04bcd17d INFO Decoded payload: {&lt;BR /&gt;"messageType": "DATA_MESSAGE",&lt;BR /&gt;"owner": "765460745490",&lt;BR /&gt;"logGroup": "airflow-OnePIAirflowEnvironment-DEV-Task",&lt;BR /&gt;"logStream": "any_bash_command_dag/bash_command/2021-12-13T20_18_00.187744+00_00/1.log",&lt;BR /&gt;"subscriptionFilters": [&lt;BR /&gt;"airflow_2_splunk_task"&lt;BR /&gt;],&lt;BR /&gt;"logEvents": [&lt;BR /&gt;{&lt;BR /&gt;"id": "36560436722252801980494271713377497999438999533834272768",&lt;BR /&gt;"timestamp": 1639426682686,&lt;BR /&gt;"message": "[2021-12-13 20:18:02,686] {{taskinstance.py:1283}} INFO - Exporting the following env vars:&lt;STRONG&gt;\nAIRFLOW_CTX_DAG_OWNER&lt;/STRONG&gt;=airflow\nAIRFLOW_CTX_DAG_ID=any_bash_command_dag\nAIRFLOW_CTX_TASK_ID=bash_command\nAIRFLOW_CTX_EXECUTION_DATE=2021-12-13T20:18:00.187744+00:00\nAIRFLOW_CTX_DAG_RUN_ID=manual__2021-12-13T20:18:00.187744+00:00"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The SPL without \n doesn't yield any result.&lt;/P&gt;&lt;P&gt;index=cloud sourcetype=lambda:Airflow2Splunk "\"logGroup\"" "\"airflow-OnePIAirflowEnvironment-DEV-Task\""&lt;BR /&gt;| transaction startswith="&lt;STRONG&gt;AIRFLOW_CTX_DAG_OWNER&lt;/STRONG&gt;" endswith="Marking task as FAILED".&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 01:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-formulate-query-for-our-use-case/m-p/578270#M201520</guid>
      <dc:creator>kapoorsumit2020</dc:creator>
      <dc:date>2021-12-14T01:34:43Z</dc:date>
    </item>
  </channel>
</rss>

