<?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: How to print a splunk variable? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-print-a-splunk-variable/m-p/546830#M155022</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233191"&gt;@satyajit7&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;see the &lt;STRONG&gt;addinfo&lt;/STRONG&gt; command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Addinfo" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Addinfo&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;you need info_min_time and info_max_time.&lt;/P&gt;&lt;P&gt;ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 06 Apr 2021 09:35:47 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2021-04-06T09:35:47Z</dc:date>
    <item>
      <title>How to print a splunk variable?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-print-a-splunk-variable/m-p/546821#M155018</link>
      <description>&lt;P&gt;How to print a splunk default variable in search query? Actually I have two variables like $job.earliestTime$ and $job.latestTime$. And I want this two to use in alert so that it will give me the date range in the pdf. Can somebody please suggest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 08:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-print-a-splunk-variable/m-p/546821#M155018</guid>
      <dc:creator>satyajit7</dc:creator>
      <dc:date>2021-04-06T08:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to print a splunk variable?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-print-a-splunk-variable/m-p/546829#M155021</link>
      <description>&lt;P&gt;And I'm trying to use like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;.....|eval startDate =&amp;nbsp;&lt;SPAN&gt;$job.earliestTime$&lt;/SPAN&gt; | eval endDate =&amp;nbsp;&lt;SPAN&gt;$job.latestTime$ | table startDate endDate&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 09:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-print-a-splunk-variable/m-p/546829#M155021</guid>
      <dc:creator>satyajit7</dc:creator>
      <dc:date>2021-04-06T09:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to print a splunk variable?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-print-a-splunk-variable/m-p/546830#M155022</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233191"&gt;@satyajit7&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;see the &lt;STRONG&gt;addinfo&lt;/STRONG&gt; command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Addinfo" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Addinfo&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;you need info_min_time and info_max_time.&lt;/P&gt;&lt;P&gt;ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 09:35:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-print-a-splunk-variable/m-p/546830#M155022</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-06T09:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to print a splunk variable?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-print-a-splunk-variable/m-p/546832#M155023</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;Thanks for your reply and I got solution as well.&amp;nbsp; I have looked to that doc and got some ideas. Now I'm able to print the date range in Tabular format.&lt;/P&gt;&lt;P&gt;My code looks like this and it's working perfectly&lt;/P&gt;&lt;P&gt;....|addinfo| eval startDate= strftime(info_min_time,"%Y-%m-%d")| eval endDate= strftime(info_max_time,"%Y-%m-%d")|table startDate endDate.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 09:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-print-a-splunk-variable/m-p/546832#M155023</guid>
      <dc:creator>satyajit7</dc:creator>
      <dc:date>2021-04-06T09:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to print a splunk variable?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-print-a-splunk-variable/m-p/546847#M155029</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233191"&gt;@satyajit7&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for your and see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 11:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-print-a-splunk-variable/m-p/546847#M155029</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-06T11:16:00Z</dc:date>
    </item>
  </channel>
</rss>

