<?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: PDF Export and Eval in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197308#M56996</link>
    <description>&lt;P&gt;Hi. I have a similar issue like this. I want to extract the users list which contains ids (numbers) and names(text). As you discussed text are left aligned and numbers are right aligned. But i append space with that field. Still those are not changing. Could you please help?&lt;/P&gt;

&lt;P&gt;search ... | eval Users = "   " + username | table Users | sort Users&lt;/P&gt;</description>
    <pubDate>Fri, 10 Oct 2014 08:42:29 GMT</pubDate>
    <dc:creator>splunkn</dc:creator>
    <dc:date>2014-10-10T08:42:29Z</dc:date>
    <item>
      <title>PDF Export and Eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197301#M56989</link>
      <description>&lt;P&gt;6.1.1 known issues:&lt;BR /&gt;
Events format settings like list, table, max lines, wrapping do not apply to PDF reports and are not used. (SPL-67491)&lt;/P&gt;

&lt;P&gt;Were using Eval to do comma formatting on some fields:&lt;BR /&gt;
eval Merch=tostring(Merch,"commas") &lt;/P&gt;

&lt;P&gt;and noticed that in the generated pdf fields formatted with commas are not in line like they are with the dashboard. The other numbers are right aligned, they are left aligned&lt;/P&gt;

&lt;P&gt;(dashboard)&lt;BR /&gt;
    |Merch        |&lt;BR /&gt;
    |    1,260.00|&lt;/P&gt;

&lt;P&gt;(exported pdf)&lt;BR /&gt;
    |Merch        |&lt;BR /&gt;
    |1,260.00     |&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2014 13:41:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197301#M56989</guid>
      <dc:creator>devicenul1</dc:creator>
      <dc:date>2014-06-12T13:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Export and Eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197302#M56990</link>
      <description>&lt;P&gt;no one else having this problem?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2014 13:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197302#M56990</guid>
      <dc:creator>devicenul1</dc:creator>
      <dc:date>2014-06-13T13:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Export and Eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197303#M56991</link>
      <description>&lt;P&gt;After making is comma formatted, the PDF generator code treat that as 'Text' instead on 'Number'. All text are Left aligned, hence the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2014 14:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197303#M56991</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-13T14:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Export and Eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197304#M56992</link>
      <description>&lt;P&gt;That makes complete sense ... if you come back and make an answer I'll mark it for you ^^. I worked around this by converting our columns in SQL, something like:&lt;/P&gt;

&lt;P&gt;CONVERT(varchar(12), CONVERT(MONEY, table.column), 1) as MoneyColumn&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2014 18:29:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197304#M56992</guid>
      <dc:creator>devicenul1</dc:creator>
      <dc:date>2014-06-13T18:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Export and Eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197305#M56993</link>
      <description>&lt;P&gt;The above convert actually ended up being bad news bears for me. We had total columns and it was causing values with formatting to be excluded from the total. I had to go back to no CONVERT in the SQL but doing the |addtotals first then | eval Column=tostring(Column,"commas")&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 19:35:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197305#M56993</guid>
      <dc:creator>devicenul1</dc:creator>
      <dc:date>2014-06-17T19:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Export and Eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197306#M56994</link>
      <description>&lt;P&gt;I have the same issue and I ended up adding a pipe character and 6 spaces before each value (after all the totalling). Not a good solution but it looks acceptable in the PDF/printed form.&lt;/P&gt;

&lt;P&gt;all search with total | eval mytotal="|      ".tostring(mytotal,"commas")&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 19:55:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197306#M56994</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-17T19:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Export and Eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197307#M56995</link>
      <description>&lt;P&gt;The space idea was a good work around, it still doesn't line up for me but it is a good thought. I know it's not excel but it kind of stinks you can't just pick a justification on a table (left or right) and it's applied to all data in the table.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 15:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197307#M56995</guid>
      <dc:creator>devicenul1</dc:creator>
      <dc:date>2014-06-18T15:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Export and Eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197308#M56996</link>
      <description>&lt;P&gt;Hi. I have a similar issue like this. I want to extract the users list which contains ids (numbers) and names(text). As you discussed text are left aligned and numbers are right aligned. But i append space with that field. Still those are not changing. Could you please help?&lt;/P&gt;

&lt;P&gt;search ... | eval Users = "   " + username | table Users | sort Users&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 08:42:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Export-and-Eval/m-p/197308#M56996</guid>
      <dc:creator>splunkn</dc:creator>
      <dc:date>2014-10-10T08:42:29Z</dc:date>
    </item>
  </channel>
</rss>

