<?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 AWS ECS Logs in Splunk in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/AWS-ECS-Logs-in-Splunk/m-p/391328#M8514</link>
    <description>&lt;P&gt;Hello Folks,&lt;/P&gt;

&lt;P&gt;I am trying to send logs from ECS to Splunk and I have followed everything in this blog &lt;A href="https://www.splunk.com/blog/2016/07/13/docker-amazon-ecs-splunk-how-they-now-all-seamlessly-work-together.html"&gt;https://www.splunk.com/blog/2016/07/13/docker-amazon-ecs-splunk-how-they-now-all-seamlessly-work-together.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I have added splunk as logdriver into the ecs task definition as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"logConfiguration": {
           "logDriver": "splunk",
           "options": {
             "splunk-token": "xxx",
             "splunk-url": "https://input-xxxx.cloud.splunk.com:8088",
             "splunk-insecureskipverify":"true",
             "splunk-format":"json"

           }
       }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have also added the below into the userdata script:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;echo ECS_AVAILABLE_LOGGING_DRIVERS='["splunk"]' &amp;gt;&amp;gt; /etc/ecs/ecs.config
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In Splunk Cloud I am able to find events related to my application like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Audit:[timestamp=08-02-2018 14:17:40.427, user=xxxx, action=search, info=granted , search_id='ta_1533219460.2547', search='typeahead prefix="*APPLICATION*" max_time="1" count="50" use_cache=1', autojoin='0', buckets=0, ttl=10, max_count=50, maxtime=8640000, enable_lookups='0', extra_fields='', apiStartTime='ZERO_TIME', apiEndTime='ZERO_TIME', savedsearch_name=""][n/a]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I am not able to find the application logs at all. Could you please help me what am I missing here? The application is nodejs and I just want to see all docker logs of the container. &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Ivan&lt;/P&gt;</description>
    <pubDate>Thu, 02 Aug 2018 15:32:30 GMT</pubDate>
    <dc:creator>buildandconfign</dc:creator>
    <dc:date>2018-08-02T15:32:30Z</dc:date>
    <item>
      <title>AWS ECS Logs in Splunk</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/AWS-ECS-Logs-in-Splunk/m-p/391328#M8514</link>
      <description>&lt;P&gt;Hello Folks,&lt;/P&gt;

&lt;P&gt;I am trying to send logs from ECS to Splunk and I have followed everything in this blog &lt;A href="https://www.splunk.com/blog/2016/07/13/docker-amazon-ecs-splunk-how-they-now-all-seamlessly-work-together.html"&gt;https://www.splunk.com/blog/2016/07/13/docker-amazon-ecs-splunk-how-they-now-all-seamlessly-work-together.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I have added splunk as logdriver into the ecs task definition as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"logConfiguration": {
           "logDriver": "splunk",
           "options": {
             "splunk-token": "xxx",
             "splunk-url": "https://input-xxxx.cloud.splunk.com:8088",
             "splunk-insecureskipverify":"true",
             "splunk-format":"json"

           }
       }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have also added the below into the userdata script:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;echo ECS_AVAILABLE_LOGGING_DRIVERS='["splunk"]' &amp;gt;&amp;gt; /etc/ecs/ecs.config
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In Splunk Cloud I am able to find events related to my application like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Audit:[timestamp=08-02-2018 14:17:40.427, user=xxxx, action=search, info=granted , search_id='ta_1533219460.2547', search='typeahead prefix="*APPLICATION*" max_time="1" count="50" use_cache=1', autojoin='0', buckets=0, ttl=10, max_count=50, maxtime=8640000, enable_lookups='0', extra_fields='', apiStartTime='ZERO_TIME', apiEndTime='ZERO_TIME', savedsearch_name=""][n/a]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I am not able to find the application logs at all. Could you please help me what am I missing here? The application is nodejs and I just want to see all docker logs of the container. &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Ivan&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 15:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/AWS-ECS-Logs-in-Splunk/m-p/391328#M8514</guid>
      <dc:creator>buildandconfign</dc:creator>
      <dc:date>2018-08-02T15:32:30Z</dc:date>
    </item>
  </channel>
</rss>

