<?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 Multiline macro writing format problem in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-macro-writing-format-problem/m-p/26078#M4258</link>
    <description>&lt;P&gt;*emphasized text*i was defining a macro search&lt;BR /&gt;
writing the search each pipe in one line like:&lt;BR /&gt;
xxxx&lt;BR /&gt;
|aaa&lt;BR /&gt;
|bbb&lt;BR /&gt;
|ccc&lt;BR /&gt;
it failed to work.&lt;BR /&gt;
but when i put them all in one line: xxxx|aaa|bbb|ccc,  it worked&lt;BR /&gt;
the error information was:&lt;BR /&gt;
"Error in 'eval' command: Failed to parse the provided arguments. Usage: eval dest_key = expression"&lt;BR /&gt;
i tried to locate the problem, maybe a subsearch caused this error:&lt;BR /&gt;
xxxx&lt;BR /&gt;
|eval [search xxx&lt;BR /&gt;
|return i]&lt;BR /&gt;
|xxxx&lt;BR /&gt;
which writing in one line will result as "xxxx|eval i=something|xxxx"&lt;BR /&gt;
but "i" was not actually returned in multi-line mode.&lt;BR /&gt;
is that bug? or macro search is not suggested to multiline way?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:30:40 GMT</pubDate>
    <dc:creator>crazyeva</dc:creator>
    <dc:date>2020-09-28T14:30:40Z</dc:date>
    <item>
      <title>Multiline macro writing format problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-macro-writing-format-problem/m-p/26078#M4258</link>
      <description>&lt;P&gt;*emphasized text*i was defining a macro search&lt;BR /&gt;
writing the search each pipe in one line like:&lt;BR /&gt;
xxxx&lt;BR /&gt;
|aaa&lt;BR /&gt;
|bbb&lt;BR /&gt;
|ccc&lt;BR /&gt;
it failed to work.&lt;BR /&gt;
but when i put them all in one line: xxxx|aaa|bbb|ccc,  it worked&lt;BR /&gt;
the error information was:&lt;BR /&gt;
"Error in 'eval' command: Failed to parse the provided arguments. Usage: eval dest_key = expression"&lt;BR /&gt;
i tried to locate the problem, maybe a subsearch caused this error:&lt;BR /&gt;
xxxx&lt;BR /&gt;
|eval [search xxx&lt;BR /&gt;
|return i]&lt;BR /&gt;
|xxxx&lt;BR /&gt;
which writing in one line will result as "xxxx|eval i=something|xxxx"&lt;BR /&gt;
but "i" was not actually returned in multi-line mode.&lt;BR /&gt;
is that bug? or macro search is not suggested to multiline way?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:30:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-macro-writing-format-problem/m-p/26078#M4258</guid>
      <dc:creator>crazyeva</dc:creator>
      <dc:date>2020-09-28T14:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline macro writing format problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-macro-writing-format-problem/m-p/26079#M4259</link>
      <description>&lt;P&gt;by the way,  "xxx|bucket _time span=30m|xxx" works well in oneline, but goes wrong in multi lines, unless change it a little: "xxx|bucket span=30m _time|xxx"&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2013 11:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-macro-writing-format-problem/m-p/26079#M4259</guid>
      <dc:creator>crazyeva</dc:creator>
      <dc:date>2013-08-06T11:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline macro writing format problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-macro-writing-format-problem/m-p/26080#M4260</link>
      <description>&lt;P&gt;There is a bug in the macro when it is saved in the config file, unable to handle the linebreak char after a function. Go oneliner or finish the line with a pipe.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2013 16:26:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-macro-writing-format-problem/m-p/26080#M4260</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-08-06T16:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline macro writing format problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-macro-writing-format-problem/m-p/26081#M4261</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2013 23:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-macro-writing-format-problem/m-p/26081#M4261</guid>
      <dc:creator>crazyeva</dc:creator>
      <dc:date>2013-08-06T23:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline macro writing format problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-macro-writing-format-problem/m-p/26082#M4262</link>
      <description>&lt;P&gt;Is this bug ever going to be fixed?&lt;/P&gt;

&lt;P&gt;I have some very complex macros that are much easier to read and edit when they are split over multiple lines?&lt;/P&gt;

&lt;P&gt;Edit: I tried the finish each line with a pipe but that didnt seem to work.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2013 04:56:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-macro-writing-format-problem/m-p/26082#M4262</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2013-10-21T04:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline macro writing format problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-macro-writing-format-problem/m-p/26083#M4263</link>
      <description>&lt;P&gt;This is planned to be fixed in next patch version (likely 6.0.1 and  5.0.6). See SPL-72399 in the changelog once released for details.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2013 18:06:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-macro-writing-format-problem/m-p/26083#M4263</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-10-21T18:06:58Z</dc:date>
    </item>
  </channel>
</rss>

